Is it possible to catch a key event

I am currently working on a football game and would like to make it possible to play a pass with a key or mouse event. Is there any possibility apart from the jump, crouch or sprint event?