KeyValue
The KeyboardEvent.key attribute of an event must always contain one of these control key or character values (even if the value is 'Unidentified').
If the key represents one of the set of printable control characters which has a Unicode character entry, such as the tab key, the KeyboardEvent.key attribute must have the key value (e.g., 'Tab').
Implementations that are unable to identify a key must use the key value 'Unidentified'.
Taken from http://www.w3.org/TR/DOM-Level-3-Events/#keys-special
Type members
Value members
Concrete fields
The Accept (Commit, OK) key. Accept current option or input method sequence conversion.
The Accept (Commit, OK) key. Accept current option or input method sequence conversion.
The Alternative (Alt, Option, Menu) key. Enable alternate modifier function for interpreting concurrent or subsequent keyboard input. This key value is also used for the Apple 'Option' key.
The Alternative (Alt, Option, Menu) key. Enable alternate modifier function for interpreting concurrent or subsequent keyboard input. This key value is also used for the Apple 'Option' key.
The Alternate Graphics (AltGr or AltGraph) key. This key is used enable the ISO Level 3 shift modifier (the standard 'Shift' key is the level 2 modifier).
The Alternate Graphics (AltGr or AltGraph) key. This key is used enable the ISO Level 3 shift modifier (the standard 'Shift' key is the level 2 modifier).
The down arrow key, to navigate or traverse downward.
The down arrow key, to navigate or traverse downward.
The left arrow key, to navigate or traverse leftward.
The left arrow key, to navigate or traverse leftward.
The right arrow key, to navigate or traverse rightward.
The right arrow key, to navigate or traverse rightward.
The Backspace key. This key value is also used for the key labeled 'delete' on MacOS keyboards.
The Backspace key. This key value is also used for the key labeled 'delete' on MacOS keyboards.
Navigate to previous content or page in current history.
Navigate to previous content or page in current history.
Navigate to next content or page in current history.
Navigate to next content or page in current history.
The Browser Home key, used with keyboard entry, to go to the home page.
The Browser Home key, used with keyboard entry, to go to the home page.
The Browser Refresh key, to refresh the current page or content.
The Browser Refresh key, to refresh the current page or content.
The Browser Search key, to call up the user's preferred search page.
The Browser Search key, to call up the user's preferred search page.
The Browser Stop key, to stop loading the current page or content.
The Browser Stop key, to stop loading the current page or content.
The Caps Lock (Capital) key. Toggle capital character lock function for interpreting subsequent keyboard input event.
The Caps Lock (Capital) key. Toggle capital character lock function for interpreting subsequent keyboard input event.
The Clear key, for removing current selected input.
The Clear key, for removing current selected input.
Show the application's context menu. This key is commonly found between the right 'OS' key and the right 'Control' key.
Show the application's context menu. This key is commonly found between the right 'OS' key and the right 'Control' key.
The Control (Ctrl) key, to enable control modifier function for interpreting concurrent or subsequent keyboard input.
The Control (Ctrl) key, to enable control modifier function for interpreting concurrent or subsequent keyboard input.
The Delete (Del) Key. This key value is also used for the key labeled 'delete' on MacOS keyboards when modified by the 'Fn' key.
The Delete (Del) Key. This key value is also used for the key labeled 'delete' on MacOS keyboards when modified by the 'Fn' key.
The End key, used with keyboard entry to go to the end of content.
The End key, used with keyboard entry to go to the end of content.
The Enter key, to activate current selection or accept current input. This key value is also used for the 'Return' (Macintosh numpad) key.
The Enter key, to activate current selection or accept current input. This key value is also used for the 'Return' (Macintosh numpad) key.
The Erase to End of Field key. This key deletes all characters from the current cursor position to the end of the current field.
The Erase to End of Field key. This key deletes all characters from the current cursor position to the end of the current field.
The Escape (Esc) key, to initiate an escape sequence.
The Escape (Esc) key, to initiate an escape sequence.
The F1 key, a general purpose function key, as index 1.
The F1 key, a general purpose function key, as index 1.
The F10 key, a general purpose function key, as index 10.
The F10 key, a general purpose function key, as index 10.
The F11 key, a general purpose function key, as index 11.
The F11 key, a general purpose function key, as index 11.
The F12 key, a general purpose function key, as index 12.
The F12 key, a general purpose function key, as index 12.
The F2 key, a general purpose function key, as index 2.
The F2 key, a general purpose function key, as index 2.
The F3 key, a general purpose function key, as index 3.
The F3 key, a general purpose function key, as index 3.
The F4 key, a general purpose function key, as index 4.
The F4 key, a general purpose function key, as index 4.
The F5 key, a general purpose function key, as index 5.
The F5 key, a general purpose function key, as index 5.
The F6 key, a general purpose function key, as index 6.
The F6 key, a general purpose function key, as index 6.
The F7 key, a general purpose function key, as index 7.
The F7 key, a general purpose function key, as index 7.
The F8 key, a general purpose function key, as index 8.
The F8 key, a general purpose function key, as index 8.
The F9 key, a general purpose function key, as index 9.
The F9 key, a general purpose function key, as index 9.
The Function switch (Fn) key. Activating this key simultaneously with another key changes that key's value to an alternate character or function. This key is often handled directly in the keyboard hardware and does not usually generate key events.
The Function switch (Fn) key. Activating this key simultaneously with another key changes that key's value to an alternate character or function. This key is often handled directly in the keyboard hardware and does not usually generate key events.
The Function-Lock (FnLock, F-Lock) key. Activating this key switches the mode of the keyboard to changes some keys' values to an alternate character or function. This key is often handled directly in the keyboard hardware and does not usually generate key events.
The Function-Lock (FnLock, F-Lock) key. Activating this key switches the mode of the keyboard to changes some keys' values to an alternate character or function. This key is often handled directly in the keyboard hardware and does not usually generate key events.
The Home key, used with keyboard entry, to go to start of content.
The Home key, used with keyboard entry, to go to start of content.
The Insert (Ins) key, to toggle between text modes for insertion or overtyping.
The Insert (Ins) key, to toggle between text modes for insertion or overtyping.
The Meta key, to enable meta modifier function for interpreting concurrent or subsequent keyboard input. This key value is also used for the Apple 'Command' key.
The Meta key, to enable meta modifier function for interpreting concurrent or subsequent keyboard input. This key value is also used for the Apple 'Command' key.
The Number Lock key, to toggle numer-pad mode function for interpreting subsequent keyboard input.
The Number Lock key, to toggle numer-pad mode function for interpreting subsequent keyboard input.
The operating system key (e.g. the Windows Logo key).
The operating system key (e.g. the Windows Logo key).
The Page Down key, to scroll down or display next page of content.
The Page Down key, to scroll down or display next page of content.
The Page Up key, to scroll up or display previous page of content.
The Page Up key, to scroll up or display previous page of content.
Pause the current state or application (as appropriate).
Pause the current state or application (as appropriate).
Note: Do not use this value for the pause button on media controllers. Use 'MediaPause' instead.
Play or resume the current state or application (as appropriate).
Play or resume the current state or application (as appropriate).
Note: Do not use this value for the play button on media controllers. Use 'MediaPlay' instead.
The Scroll Lock key, to toggle between scrolling and cursor movement modes.
The Scroll Lock key, to toggle between scrolling and cursor movement modes.
The Separator key, for context-sensitive text separators.
The Separator key, for context-sensitive text separators.
The Shift key, to enable shift modifier function for interpreting concurrent or subsequent keyboard input.
The Shift key, to enable shift modifier function for interpreting concurrent or subsequent keyboard input.
The Symbol modifier key (used on some virtual keyboards).
The Symbol modifier key (used on some virtual keyboards).