Keyboard & Mouse Events FAQ
Which key did the user press?
Which character did the user type?
Are there predefined constants with
Are the keydown event
standardized across browsers?
in a text input field?
How do I detect keyboard events with Ctrl, Alt, and Shift keys?
The following questions are applicable to keyboard events as well as mouse events:
How do I add an event handler to an HTML page element?
How do I remove an event handler from a page element?
How do I cancel event bubbling?
How do I determine the event's target element?