KeyboardEvent
Event that is fired when the keyboard is pressed. Learn more.
Guides
Additional information about this section
Properties
Store values associated with an object
- altKey
Indicates if the Option key on a Mac or Alt key on a PC was pressed.
- ctrlKey
Indicates if the Control (Ctrl) key was pressed.
- key
Gets a string representation of the key that was pressed.
- metaKey
Indicates if the ⌘ Command key on a Mac or ⊞ Windows key on a PC was pressed.
- shiftKey
Indicates if the Shift key was pressed.
- context
Gets the context in which an event was fired.
- target
Gets the element that the event was fired on.
- type
Gets the type of event that was fired.
Mixes in: