KeyboardEvent

  • Revision slug: DOM/KeyboardEvent
  • Revision title: KeyboardEvent
  • Revision id: 381403
  • Created:
  • Creator: Masayuki
  • Is current revision? No
  • Comment

Revision Content

KeyboardEvent objects describe a user interaction with the keyboard. Each event describes a key; the event type ({{domevent('keydown')}}, {{domevent('keypress')}}, or {{domevent('keyup')}}) identifies what kind of activity was performed.

Note: The KeyboardEvent indicates just what's happening on a key. When you need to handle text input, use HTML5 input event instead. For example, if user inputs text from hand-writing system like tablet PC, key events may not be fired.

Method overview

boolean getModifierState(in DOMString keyArg);
void initKeyboardEvent(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in views::AbstractView viewArg, in DOMString charArg, in DOMString keyArg, in unsigned long locationArg, in DOMString modifiersListArg, in boolean repeat, in DOMString localeArg);

Attributes

Attribute Type Description
altKey boolean true if the Alt (or Option, on Mac) key was active when the key event was generated. Read only.
char DOMString

The character value of the key. If the key corresponds to a printable character, this value is a non-empty Unicode string containing that character. If the key doesn't have a printable representation, this is an empty string. See key names and char values for the detail. Read only.

Note: If the key is used as a macro that inserts multiple characters, this attribute's value is the entire string, not just the first character.

{{gecko_callout_unimplemented("680830")}}

This attribute is not implemented in Gecko at this time.

charCode {{deprecated_inline()}} unsigned long

The Unicode reference number of the key; this attribute is used only by the {{domevent('keypress')}} event. For keys whose char attribute contains multiple characters, this is the Unicode value of the first character in that attribute. Read only.

Warning: This attribute is deprecated; you should use char instead, if available.
ctrlKey boolean true if the Control key was active when the key event was generated. Read only.
key DOMString

The key value of the key represented by the event. If the value has a printed representation, this attribute's value is the same as the char attribute. Otherwise, it's one of the key value strings specified in {{anch("Key values")}}. If the key can't be identified, this is the string "Unidentified". See key names and char values for the detail. Read only.

{{gecko_callout_unimplemented("680830")}}

This attribute is not implemented in Gecko at this time.

keyCode {{deprecated_inline()}}

unsigned long

A system and implementation dependent numerical code identifying the unmodified value of the pressed key. This is usually the decimal ASCII ({{RFC(20)}}) or Windows 1252 code corresponding to the key; see {{anch("Virtual key codes")}} for a list of Gecko's keyCode values. If the key can't be identified, this value is 0. Read only.

Warning: This attribute is deprecated; you should use key instead, if available.
locale DOMString

A locale string indicating the locale the keyboard is configured for. This may be the empty string if the browser or device doesn't know the keyboard's locale. Read only.

Note: This does not describe the locale of the data being entered. A user may be using one keyboard layout while typing text in a different language.

location {{dom_level("3")}} {{gecko_minversion_inline("15.0")}}

unsigned long

The location of the key on the keyboard or other input device; see {{anch("Key location constants")}} below. Read only.

metaKey boolean true if the Meta (or Command, on Mac) key was active when the key event was generated. Read only.
repeat boolean

true if the key is being held down such that it is automatically repeating. Read only.

{{gecko_callout_unimplemented("600117")}}

This attribute is not implemented in Gecko at this time.

shiftKey boolean true if the Shift key was active when the key event was generated. Read only.
which {{deprecated_inline()}} unsigned long

A system and implementation dependent numeric code identifying the unmodified value of the pressed key; this is usually the same as keyCode. Read only.

Warning: This attribute is deprecated; you should use key instead, if available.

Constants

Virtual key codes

{{deprecated_header()}}

These constants represent virtual key codes as reported by the deprecated keyCode attribute; that is, keys that do not correspond to printable characters. The diagram below represents a standard ANSI US keyboard; Mac and most PC keyboards have the same layout for the printable characters, and a similar layout for the remaining keys.

Starting in Gecko 15 {{geckoRelease("15.0")}}, Gecko decides keycode by following rules for printable keys:

  1. If the system is Windows and native keycode of pressed key indicates that the key is a-z or 0-9, uses a keycode for it.
  2. If the system is Mac and native keycode of pressed key indicates that the key is 0-9, uses a keycode for it.
  3. If pressed key inputs an ASCII alphabet or numeric with no modifier key, uses a keycode for it.
  4. If pressed key inputs an ASCII alphabet or numeric with Shift key, uses a keycode for it.
  5. If pressed key inputs another ASCII character with no modifier key, uses a keycode for it.
  6. If pressed key inputs another ASCII character with Shift key, users a keycode for it.
  7. Otherwise, i.e., pressed key inputs a Unicode character:
    1. If the keyboard layout is ASCII capable keyboard layout (i.e., can input ASCII alphabets), uses 0.
    2. Otherwise, i.e., the keyboard layout isn't ASCII capable, using ASCII capable keyboard layout which is installed on the environment and has highest priority:
      1. If pressed key on the alternative keyboard layout inputs an ASCII alphabet or numeric, uses a keycode for it.
      2. Otherwise, uses 0.
Note: Web developers shouldn't use keycode attribute of printable keys in keydown and keyup event handlers. As described above, keycode is not usable for checking character which will be inputted especially when Shift key or AltGr key is pressed. When web developers implement shortcut key handler, keypress event is better event for that purpose on Gecko at least. See Gecko Keypress Event for the detail.
Constant Value Description
DOM_VK_CANCEL 0x03 (3) Cancel key.
DOM_VK_HELP 0x06 (6) Help key.
DOM_VK_BACK_SPACE 0x08 (8) Backspace key.
DOM_VK_TAB 0x09 (9) Tab key.
DOM_VK_CLEAR 0x0C (12) "5" key on Numpad when NumLock is unlocked. Or on Mac, clear key which is positioned at NumLock key.
DOM_VK_RETURN 0x0D (13) Return/enter key on the main keyboard.
DOM_VK_ENTER 0x0E (14) Reserved, but not used.
DOM_VK_SHIFT 0x10 (16) Shift key.
DOM_VK_CONTROL 0x11 (17) Control key.
DOM_VK_ALT 0x12 (18) Alt (Option on Mac) key.
DOM_VK_PAUSE 0x13 (19) Pause key.
DOM_VK_CAPS_LOCK 0x14 (20) Caps lock.
DOM_VK_KANA 0x15 (21) Linux support for this keycode was added in Gecko 4.0.
DOM_VK_HANGUL 0x15 (21) Linux support for this keycode was added in Gecko 4.0.
DOM_VK_EISU 0x 16 (22) "英数" key on Japanese Mac keyboard. {{gecko_minversion_inline("15.0")}}
DOM_VK_JUNJA 0x17 (23) Linux support for this keycode was added in Gecko 4.0.
DOM_VK_FINAL 0x18 (24) Linux support for this keycode was added in Gecko 4.0.
DOM_VK_HANJA 0x19 (25) Linux support for this keycode was added in Gecko 4.0.
DOM_VK_KANJI 0x19 (25) Linux support for this keycode was added in Gecko 4.0.
DOM_VK_ESCAPE 0x1B (27) Escape key.
DOM_VK_CONVERT 0x1C (28) Linux support for this keycode was added in Gecko 4.0.
DOM_VK_NONCONVERT 0x1D (29) Linux support for this keycode was added in Gecko 4.0.
DOM_VK_ACCEPT 0x1E (30) Linux support for this keycode was added in Gecko 4.0.
DOM_VK_MODECHANGE 0x1F (31) Linux support for this keycode was added in Gecko 4.0.
DOM_VK_SPACE 0x20 (32) Space bar.
DOM_VK_PAGE_UP 0x21 (33) Page Up key.
DOM_VK_PAGE_DOWN 0x22 (34) Page Down key.
DOM_VK_END 0x23 (35) End key.
DOM_VK_HOME 0x24 (36) Home key.
DOM_VK_LEFT 0x25 (37) Left arrow.
DOM_VK_UP 0x26 (38) Up arrow.
DOM_VK_RIGHT 0x27 (39) Right arrow.
DOM_VK_DOWN 0x28 (40) Down arrow.
DOM_VK_SELECT 0x29 (41) Linux support for this keycode was added in Gecko 4.0.
DOM_VK_PRINT 0x2A (42) Linux support for this keycode was added in Gecko 4.0.
DOM_VK_EXECUTE 0x2B (43) Linux support for this keycode was added in Gecko 4.0.
DOM_VK_PRINTSCREEN 0x2C (44) Print Screen key.
DOM_VK_INSERT 0x2D (45) Ins(ert) key.
DOM_VK_DELETE 0x2E (46) Del(ete) key.
DOM_VK_0 0x30 (48) "0" key in standard key location.
DOM_VK_1 0x31 (49) "1" key in standard key location.
DOM_VK_2 0x32 (50) "2" key in standard key location.
DOM_VK_3 0x33 (51) "3" key in standard key location.
DOM_VK_4 0x34 (52) "4" key in standard key location.
DOM_VK_5 0x35 (53) "5" key in standard key location.
DOM_VK_6 0x36 (54) "6" key in standard key location.
DOM_VK_7 0x37 (55) "7" key in standard key location.
DOM_VK_8 0x38 (56) "8" key in standard key location.
DOM_VK_9 0x39 (57) "9" key in standard key location.
DOM_VK_COLON 0x3A (58) Colon (":") key. {{gecko_minversion_inline("15.0")}}
DOM_VK_SEMICOLON 0x3B (59) Semicolon (";") key.
DOM_VK_LESS_THAN 0x3C (60) Less-than ("<") key. {{gecko_minversion_inline("15.0")}}
DOM_VK_EQUALS 0x3D (61) Equals ("=") key.
DOM_VK_GREATER_THAN 0x3E (62) Greater-than (">") key. {{gecko_minversion_inline("15.0")}}
DOM_VK_QUESTION_MARK 0x3F (63) Question mark ("?") key. {{gecko_minversion_inline("15.0")}}
DOM_VK_AT 0x40 (64) Atmark ("@") key. {{gecko_minversion_inline("15.0")}}
DOM_VK_A 0x41 (65) "A" key.
DOM_VK_B 0x42 (66) "B" key.
DOM_VK_C 0x43 (67) "C" key.
DOM_VK_D 0x44 (68) "D" key.
DOM_VK_E 0x45 (69) "E" key.
DOM_VK_F 0x46 (70) "F" key.
DOM_VK_G 0x47 (71) "G" key.
DOM_VK_H 0x48 (72) "H" key.
DOM_VK_I 0x49 (73) "I" key.
DOM_VK_J 0x4A (74) "J" key.
DOM_VK_K 0x4B (75) "K" key.
DOM_VK_L 0x4C (76) "L" key.
DOM_VK_M 0x4D (77) "M" key.
DOM_VK_N 0x4E (78) "N" key.
DOM_VK_O 0x4F (79) "O" key.
DOM_VK_P 0x50 (80) "P" key.
DOM_VK_Q 0x51 (81) "Q" key.
DOM_VK_R 0x52 (82) "R" key.
DOM_VK_S 0x53 (83) "S" key.
DOM_VK_T 0x54 (84) "T" key.
DOM_VK_U 0x55 (85) "U" key.
DOM_VK_V 0x56 (86) "V" key.
DOM_VK_W 0x57 (87) "W" key.
DOM_VK_X 0x58 (88) "X" key.
DOM_VK_Y 0x59 (89) "Y" key.
DOM_VK_Z 0x5A (90) "Z" key.
DOM_VK_WIN 0x5B (91) Windows logo key on Windows. Or Super or Hyper key on Linux. {{gecko_minversion_inline("15.0")}}
DOM_VK_CONTEXT_MENU 0x5D (93) Opening context menu key.
DOM_VK_SLEEP 0x5F (95) Linux support for this keycode was added in Gecko 4.0.
DOM_VK_NUMPAD0 0x60 (96) "0" on the numeric keypad.
DOM_VK_NUMPAD1 0x61 (97) "1" on the numeric keypad.
DOM_VK_NUMPAD2 0x62 (98) "2" on the numeric keypad.
DOM_VK_NUMPAD3 0x63 (99) "3" on the numeric keypad.
DOM_VK_NUMPAD4 0x64 (100) "4" on the numeric keypad.
DOM_VK_NUMPAD5 0x65 (101) "5" on the numeric keypad.
DOM_VK_NUMPAD6 0x66 (102) "6" on the numeric keypad.
DOM_VK_NUMPAD7 0x67 (103) "7" on the numeric keypad.
DOM_VK_NUMPAD8 0x68 (104) "8" on the numeric keypad.
DOM_VK_NUMPAD9 0x69 (105) "9" on the numeric keypad.
DOM_VK_MULTIPLY 0x6A (106) "*" on the numeric keypad.
DOM_VK_ADD 0x6B (107) "+" on the numeric keypad.
DOM_VK_SEPARATOR 0x6C (108)  
DOM_VK_SUBTRACT 0x6D (109) "-" on the numeric keypad.
DOM_VK_DECIMAL 0x6E (110) Decimal point on the numeric keypad.
DOM_VK_DIVIDE 0x6F (111) "/" on the numeric keypad.
DOM_VK_F1 0x70 (112) F1 key.
DOM_VK_F2 0x71 (113) F2 key.
DOM_VK_F3 0x72 (114) F3 key.
DOM_VK_F4 0x73 (115) F4 key.
DOM_VK_F5 0x74 (116) F5 key.
DOM_VK_F6 0x75 (117) F6 key.
DOM_VK_F7 0x76 (118) F7 key.
DOM_VK_F8 0x77 (119) F8 key.
DOM_VK_F9 0x78 (120) F9 key.
DOM_VK_F10 0x79 (121) F10 key.
DOM_VK_F11 0x7A (122) F11 key.
DOM_VK_F12 0x7B (123) F12 key.
DOM_VK_F13 0x7C (124) F13 key.
DOM_VK_F14 0x7D (125) F14 key.
DOM_VK_F15 0x7E (126) F15 key.
DOM_VK_F16 0x7F (127) F16 key.
DOM_VK_F17 0x80 (128) F17 key.
DOM_VK_F18 0x81 (129) F18 key.
DOM_VK_F19 0x82 (130) F19 key.
DOM_VK_F20 0x83 (131) F20 key.
DOM_VK_F21 0x84 (132) F21 key.
DOM_VK_F22 0x85 (133) F22 key.
DOM_VK_F23 0x86 (134) F23 key.
DOM_VK_F24 0x87 (135) F24 key.
DOM_VK_NUM_LOCK 0x90 (144) Num Lock key.
DOM_VK_SCROLL_LOCK 0x91 (145) Scroll Lock key.
DOM_VK_WIN_OEM_FJ_JISHO 0x92 (146) An OEM specific key on Windows. This was used for "Dictionary" key on Fujitsu OASYS. {{gecko_minversion_inline("21.0")}}
DOM_VK_WIN_OEM_FJ_MASSHOU 0x93 (147) An OEM specific key on Windows. This was used for "Unregister word" key on Fujitsu OASYS. {{gecko_minversion_inline("21.0")}}
DOM_VK_WIN_OEM_FJ_TOUROKU 0x94 (148) An OEM specific key on Windows. This was used for "Register word" key on Fujitsu OASYS. {{gecko_minversion_inline("21.0")}}
DOM_VK_WIN_OEM_FJ_LOYA 0x95 (149) An OEM specific key on Windows. This was used for "Left OYAYUBI" key on Fujitsu OASYS. {{gecko_minversion_inline("21.0")}}
DOM_VK_WIN_OEM_FJ_ROYA 0x96 (150) An OEM specific key on Windows. This was used for "Right OYAYUBI" key on Fujitsu OASYS. {{gecko_minversion_inline("21.0")}}
DOM_VK_CIRCUMFLEX 0xA0 (160) Circumflex ("^") key. {{gecko_minversion_inline("15.0")}}
DOM_VK_EXCLAMATION 0xA1 (161) Exclamation ("!") key. {{gecko_minversion_inline("15.0")}}
DOM_VK_DOUBLE_QUOTE 0xA3 (162) Double quote (""") key. {{gecko_minversion_inline("15.0")}}
DOM_VK_HASH 0xA3 (163) Hash ("#") key. {{gecko_minversion_inline("15.0")}}
DOM_VK_DOLLAR 0xA4 (164) Dollar sign ("$") key. {{gecko_minversion_inline("15.0")}}
DOM_VK_PERCENT 0xA5 (165) Percent ("%") key. {{gecko_minversion_inline("15.0")}}
DOM_VK_AMPERSAND 0xA6 (166) Ampersand ("&") key. {{gecko_minversion_inline("15.0")}}
DOM_VK_UNDERSCORE 0xA7 (167) Underscore ("_") key. {{gecko_minversion_inline("15.0")}}
DOM_VK_OPEN_PAREN 0xA8 (168) Open parenthesis ("(") key. {{gecko_minversion_inline("15.0")}}
DOM_VK_CLOSE_PAREN 0xA9 (169) Close parenthesis (")") key. {{gecko_minversion_inline("15.0")}}
DOM_VK_ASTERISK 0xAA (170) Asterisk ("*") key. {{gecko_minversion_inline("15.0")}}
DOM_VK_PLUS 0xAB (171) Plus ("+") key. {{gecko_minversion_inline("15.0")}}
DOM_VK_PIPE 0xAC (172) Pipe ("|") key. {{gecko_minversion_inline("15.0")}}
DOM_VK_HYPHEN_MINUS 0xAD (173) Hyphen-US/docs/Minus ("-") key. {{gecko_minversion_inline("15.0")}}
DOM_VK_OPEN_CURLY_BRACKET 0xAE (174) Open curly bracket ("{") key. {{gecko_minversion_inline("15.0")}}
DOM_VK_CLOSE_CURLY_BRACKET 0xAF (175) Close curly bracket ("}") key. {{gecko_minversion_inline("15.0")}}
DOM_VK_TILDE 0xB0 (176) Tilde ("~") key. {{gecko_minversion_inline("15.0")}}
DOM_VK_VOLUME_MUTE 0xB5 (181) Audio mute key. {{gecko_minversion_inline("21.0")}}
DOM_VK_VOLUME_DOWN 0xB6 (182) Audio volume down key {{gecko_minversion_inline("21.0")}}
DOM_VK_VOLUME_UP 0xB7 (183) Audio volume up key {{gecko_minversion_inline("21.0")}}
DOM_VK_COMMA 0xBC (188) Comma (",") key.
DOM_VK_PERIOD 0xBE (190) Period (".") key.
DOM_VK_SLASH 0xBF (191) Slash ("/") key.
DOM_VK_BACK_QUOTE 0xC0 (192) Back tick ("`") key.
DOM_VK_OPEN_BRACKET 0xDB (219) Open square bracket ("[") key.
DOM_VK_BACK_SLASH 0xDC (220) Back slash ("\") key.
DOM_VK_CLOSE_BRACKET 0xDD (221) Close square bracket ("]") key.
DOM_VK_QUOTE 0xDE (222) Quote (''') key.
DOM_VK_META 0xE0 (224) Meta key on Linux, Command key on Mac.
DOM_VK_ALTGR 0xE1 (225) AltGr key (Level 3 Shift key or Level 5 Shift key) on Linux. {{gecko_minversion_inline("15.0")}}
DOM_VK_WIN_ICO_HELP 0xE3 (227) An OEM specific key on Windows. This is (was?) used for Olivetti ICO keyboard.{{gecko_minversion_inline("21.0")}}
DOM_VK_WIN_ICO_00 0xE4 (228) An OEM specific key on Windows. This is (was?) used for Olivetti ICO keyboard.{{gecko_minversion_inline("21.0")}}
DOM_VK_WIN_ICO_CLEAR 0xE6 (230) An OEM specific key on Windows. This is (was?) used for Olivetti ICO keyboard.{{gecko_minversion_inline("21.0")}}
DOM_VK_WIN_OEM_RESET 0xE9 (233) An OEM specific key on Windows. This was used for Nokia/Ericsson's device.{{gecko_minversion_inline("21.0")}}
DOM_VK_WIN_OEM_JUMP 0xEA (234) An OEM specific key on Windows. This was used for Nokia/Ericsson's device.{{gecko_minversion_inline("21.0")}}
DOM_VK_WIN_OEM_PA1 0xEB (235) An OEM specific key on Windows. This was used for Nokia/Ericsson's device.{{gecko_minversion_inline("21.0")}}
DOM_VK_WIN_OEM_PA2 0xEC (236) An OEM specific key on Windows. This was used for Nokia/Ericsson's device.{{gecko_minversion_inline("21.0")}}
DOM_VK_WIN_OEM_PA3 0xED (237) An OEM specific key on Windows. This was used for Nokia/Ericsson's device.{{gecko_minversion_inline("21.0")}}
DOM_VK_WIN_OEM_WSCTRL 0xEE (238) An OEM specific key on Windows. This was used for Nokia/Ericsson's device.{{gecko_minversion_inline("21.0")}}
DOM_VK_WIN_OEM_CUSEL 0xEF (239) An OEM specific key on Windows. This was used for Nokia/Ericsson's device.{{gecko_minversion_inline("21.0")}}
DOM_VK_WIN_OEM_ATTN 0xF0 (240) An OEM specific key on Windows. This was used for Nokia/Ericsson's device.{{gecko_minversion_inline("21.0")}}
DOM_VK_WIN_OEM_FINISH 0xF1 (241) An OEM specific key on Windows. This was used for Nokia/Ericsson's device.{{gecko_minversion_inline("21.0")}}
DOM_VK_WIN_OEM_COPY 0xF2 (242) An OEM specific key on Windows. This was used for Nokia/Ericsson's device.{{gecko_minversion_inline("21.0")}}
DOM_VK_WIN_OEM_AUTO 0xF3 (243) An OEM specific key on Windows. This was used for Nokia/Ericsson's device.{{gecko_minversion_inline("21.0")}}
DOM_VK_WIN_OEM_ENLW 0xF4 (244) An OEM specific key on Windows. This was used for Nokia/Ericsson's device.{{gecko_minversion_inline("21.0")}}
DOM_VK_WIN_OEM_BACKTAB 0xF5 (245) An OEM specific key on Windows. This was used for Nokia/Ericsson's device.{{gecko_minversion_inline("21.0")}}
DOM_VK_ATTN 0xF6 (246) Attn (Attension) key of IBM midrange computers, e.g., AS/400. {{gecko_minversion_inline("21.0")}}
DOM_VK_CRSEL 0xF7 (247) CrSel (Cursor Selection) key of IBM 3270 keyboard layout. {{gecko_minversion_inline("21.0")}}
DOM_VK_EXSEL 0xF8 (248) ExSel (Extend Selection) key of IBM 3270 keyboard layout. {{gecko_minversion_inline("21.0")}}
DOM_VK_EREOF 0xF9 (249) Erase EOF key of IBM 3270 keyboard layout. {{gecko_minversion_inline("21.0")}}
DOM_VK_PLAY 0xFA (250) Play key of IBM 3270 keyboard layout. {{gecko_minversion_inline("21.0")}}
DOM_VK_ZOOM 0xFB (251) Zoom key. {{gecko_minversion_inline("21.0")}}
DOM_VK_PA1 0xFD (253) PA1 key of IBM 3270 keyboard layout. {{gecko_minversion_inline("21.0")}}
DOM_VK_WIN_OEM_CLEAR 0xFE (254) Clear key, but we're not sure the meaning difference from DOM_VK_CLEAR. {{gecko_minversion_inline("21.0")}}

OEM specific keys on Windows

On Windows, some values of virtual keycode are defined (reserved) for OEM specific key. They are available for special keys on non-standard keyboard. In other words, some values are used for different meaning by two or more venders (or hardware).

Starting Gecko 21 (and older than 15), OEM specific key values are available on the keyCode attribute only on Windows. So,  they are not useful for usual web applications. They are useful only for intranet applications or in similar situations.

See "Manufacturer-specific Virtual-Key Codes (Windows CE 5.0)" in MSDN for the detail.

Key location constants

These constants describe the location on the keyboard of key events. {{dom_level("3")}} {{gecko_minversion_inline("15.0")}}

Constant Value Description
DOM_KEY_LOCATION_STANDARD 0 The key must not be distinguished between the left and right versions of the key, and was not pressed on the numeric keypad or a key that is considered to be part of the keypad.
DOM_KEY_LOCATION_LEFT 1 The key was the left-hand version of the key; for example, this is the value of the location attribute when the left-hand Control key is pressed on a standard 101 key US keyboard. This value is only used for keys that have more that one possible location on the keyboard.
DOM_KEY_LOCATION_RIGHT 2 The key was the right-hand version of the key; for example, this is the value of the location attribute when the right-hand Control key is pressed on a standard 101 key US keyboard. This value is only used for keys that have more that one possible location on the keyboard.
DOM_KEY_LOCATION_NUMPAD 3

The key was on the numeric keypad, or has a virtual key code that corresponds to the numeric keypad.

Note: When NumLock is locked, Gecko always returns DOM_KEY_LOCATION_NUMPAD for the keys on NumPad. Otherwise, when NumLock is unlocked and the keyboard actually has a numeric keypad, Gecko always returns DOM_KEY_LOCATION_NUMPAD too. On the other hand, if the keyboard doesn't have a keypad, such as on a notebook computer, some keys become Numpad only when NumLock is locked. When such keys fires key events, the location attribute value depends on the key. That is, it must not be DOM_KEY_LOCATION_NUMPAD.
Note: NumLock key's key events indicate DOM_KEY_LOCATION_STANDARD both on Gecko and Internet Explorer.
DOM_KEY_LOCATION_MOBILE 4

The key was on a mobile device; this can be on either a physical keypad or a virtual keyboard.

Note: Gecko always returns DOM_KEY_LOCATION_MOBILE on Android (Prior to 18), Maemo, and Boot to Gecko.
DOM_KEY_LOCATION_JOYSTICK 5

The key was a button on a game controller or a joystick on a mobile device.

Note: Gecko never fires trusted key events with DOM_KEY_LOCATION_JOYSTICK except on Android. Starting 18, native key events on Android may have this value. {{gecko_minversion_inline("18.0")}}

Methods

getModifierState()

Returns the current state of the specified modifier key. {{dom_level("3")}} {{gecko_minversion_inline("15.0")}}

boolean getModifierState(
  in DOMString keyArg
);
Parameters
keyArg
A string identifying the modifier key whose value you wish to determine. This may be an implementation-defined value or one of: "Alt", "AltGraph", "CapsLock", "Control", "Fn", "Meta", "NumLock", "ScrollLock", "Shift", "SymbolLock", or "OS". Note that IE9 uses "Scroll" for "ScrollLock" and "Win" for "OS". If you use these older draft's name, Gecko's getModifierState() always returns false.
Return value

true if the specified modifier key is engaged; otherwise false.

When getModifierState() returns true on Gecko?
  Windows Linux (GTK) Mac
"Alt" Either Alt key or AltGr key pressed Alt key pressed option key pressed
"AltGraph"

Both Alt and Ctrl keys are pressed, or AltGr key is pressed

Level 3 Shift key (or Level 5 Shift key {{gecko_minversion_inline("20.0")}}) pressed option key pressed
"CapsLock" During LED for Caps Lock turned on
"Control" Either Ctrl key or AltGr key pressed Ctrl key pressed control key pressed
"Fn" Not supported
"Meta" Not supported Meta key pressed {{gecko_minversion_inline("17.0")}} command key pressed
"NumLock" During LED for Num Lock turned on A key on numpad pressed
"ScrollLock" During LED for Scroll Lock turned on During LED for Scroll Lock turned on, but typically this isn't supported by platform Not supported
"Shift" Shift key pressed
"SymbolLock" Not supported
"OS" Windows Logo key pressed Super key or Hyper key pressed (typically, mapped to Windows Logo key) Not supported

On the other platforms, "Alt", "Control" and "Shift" may be supported.

All modifiers are always supported for untrusted events on Gecko. This doesn't depend on the platform.

initKeyboardEvent()

{{deprecated_header()}}

Initializes the attributes of a keyboard event object. This method was introduced in draft of DOM Level 3 Events, but deprecated in newer draft. Gecko doesn't implement this method but there is similar one, see initKeyEvent().

void initKeyboardEvent(
  in DOMString typeArg,
  in boolean canBubbleArg,
  in boolean cancelableArg,
  in views::AbstractView viewArg,
  in DOMString charArg,
  in DOMString keyArg,
  in unsigned long locationArg,
  in DOMString modifiersListArg,
  in boolean repeat,
  in DOMString localeArg
);
Parameters
typeArg
The type of keyboard event; this will be one of {{domevent('keydown')}}, {{domevent('keypress')}}, or {{domevent('keyup')}}.
canBubbleArg
Whether or not the event can bubble.
cancelableArg
Whether or not the event can be canceled.
viewArg
?
charArg
The value of the char attribute.
keyArg
The value of the key attribute.
locationArg
The value of the location attribute.
modifiersListArg
A whitespace-delineated list of modifier keys that should be considered to be active on the event's key. For example, specifying "Control Shift" indicates that the user was holding down the Control and Shift keys when pressing the key described by the event.
repeatArg
The value of the repeat attribute.
localeArg
The value of the locale attribute.

Processing of key events

There are keydown, keypress, and keyup events. For most keys, Gecko dispatches a sequence of key events like this:

  1. When the key is first depressed, the keydown event is sent.
  2. If the key is not a modifier key, the keypress event is sent.
  3. When the user releases the key, the keyup event is sent.

Special cases

Certain keys toggle the state of an LED indicator, such as Caps Lock, Num Lock, and Scroll Lock. On Windows and Linux, these keys dispatch only the keydown and keyup events. Note that on Linux, Firefox 12 and earlier also dispatched the keypress event for these keys.

On Mac, however, Caps Lock dispatches only the keydown event due to a platform event model limitation. Num Lock had been supported on old MacBook (2007 model and older) but Mac hasn't supported Num Lock feature even on external keyboards in these days. On the old MacBook which has Num Lock key, Num Lock doesn't cause any key events. And Gecko supports Scroll Lock key if an external keyboard which has F14 is connected. However, it generates keypress event. This inconsistent behavior is a bug; see {{bug(602812)}}.

Auto-repeat handling

When a key is pressed and held down, it begins to auto-repeat. This results in a sequence of events similar to the following being dispatched:

  1. keydown
  2. keypress
  3. keydown
  4. keypress
  5. <<repeating until the user releases the key>>
  6. keyup

This is what the DOM Level 3 specification says should happen. There are some caveats, however, as described below.

Auto-repeat on some GTK environments such as Ubuntu 9.4

In some GTK-based environments, auto-repeat dispatches a native key-up event automatically during auto-repeat, and there's no way for Gecko to know the difference between a repeated series of keypresses and an auto-repeat. On those platforms, then, an auto-repeat key will generate the following sequence of events:

  1. keydown
  2. keypress
  3. keyup
  4. keydown
  5. keypress
  6. keyup
  7. <<repeating until the user releases the key>>
  8. keyup

In these environments, unfortunately, there's no way for web content to tell the difference between auto-repeating keys and keys that are just being pressed repeatedly.

Auto-repeat handling prior to Gecko 4.0

Before Gecko 4.0 {{geckoRelease('4.0')}}, keyboard handling was less consistent across platforms.

Windows
Auto-repeat behavior is the same as in Gecko 4.0 and later.
Mac
After the initial keydown event, only keypress events are sent until the keyup event occurs; the inter-spaced keydown events are not sent.
Linux
The event behavior depends on the specific platform. It will either behave like Windows or Mac depending on what the native event model does.

Key names and Char values

Following tables show what key and char values are used for each native virtual keycode. The information for Gecko is currently planned in {{ bug(680830) }}.

key names and char values on Windows
Virtual-Key Codes IE 9 Gecko (plan)
VK_LBUTTON (0x01) "Unidentified" null "Unidentified" ""
VK_RBUTTON (0x02) "Unidentified" null "Unidentified" ""
VK_CANCEL (0x03) "" U+0003 "Cancel" U+0018
VK_MBUTTON (0x04) "Unidentified" null "Unidentified" ""
VK_XBUTTON1 (0x05) "Unidentified" null "Unidentified" ""
VK_XBUTTON2 (0x06) "Unidentified" null "Unidentified" ""
VK_BACK (0x08) "Backspace" U+0008 "Backspace" U+0008
VK_TAB (0x09) "Tab" U+0009 "Tab" U+0009
VK_CLEAR (0x0C) "Clear" null "Clear" ""
VK_RETURN (0x0D) "Enter" U+000A for keydown,
U+000D for keypress
"Enter" ""
VK_SHIFT (0x10) "Shift" null "Shift" ""
VK_CONTROL (0x11) "Control" null "Control" ""
VK_MENU (0x12) "Alt" null "Alt" ""
VK_PAUSE (0x13) "Pause" null "Pause" ""
VK_CAPITAL (0x14) "CapsLock" null "CapsLock" ""
VK_KANA,
VK_HANGUEL,
VK_HANGUL (0x15)
"KanaMode" null "KanaMode" ""
VK_JUNJA (0x17) "JunjaMode" null "JunjaMode" ""
VK_FINAL (0x18) "HanjaMode" null "HanjaMode" ""
VK_HANJA,
VK_KANJI (0x19)
"KanjiMode" null "KanjiMode" ""
VK_ESCAPE (0x1B) "Esc" U+001B "Esc" U+001B
VK_CONVERT (0x1C) "Convert" null "Convert" ""
VK_NONCONVERT (0x1D) "Nonconvert" null "Nonconvert" ""
VK_ACCEPT (0x1E) "Accept" null "Accept" ""
VK_MODECHANGE (0x1F) "ModeChange" null "ModeChange" ""
VK_SPACE (0x20) "Spacebar" Depends on actual inputted character "Spacebar" Depends on actual inputted character
VK_PRIOR (0x21) "PageUp" null "PageUp" ""
VK_NEXT (0x22) "PageDown" null "PageDown" ""
VK_END (0x23) "End" null "End" ""
VK_HOME (0x24) "Home" null "Home" ""
VK_LEFT (0x25) "Left" null "Left" ""
VK_UP (0x26) "Up" null "Up" ""
VK_RIGHT (0x27) "Right" null "Right" ""
VK_DOWN (0x28) "Down" null "Down" ""
VK_SELECT (0x29) "Select" null "Select" ""
VK_PRINT (0x2A) "Unidentified" null "Unidentified" ""
VK_EXECUTE (0x2B) "Execute" null "Execute" ""
VK_SNAPSHOT (0x2C) "PrintScreen" null "PrintScreen" ""
VK_INSERT (0x2D) "Insert" null "Insert" ""
VK_DELETE (0x2E) "Del" null "Del" U+007F
VK_HELP (0x2F) "Help" null "Help" ""
VK_LWIN (0x5B) "Win" null "OS" ""
VK_RWIN (0x5C) "Win" null "OS" ""
VK_APPS (0x5D) "Apps" null "Menu" ""
VK_SLEEP (0x5F) "Unidentified" null "Unidentified" ""
VK_NUMPAD0 (0x60)VK_NUMPAD9 (0x69) "0" ~ "9" "0" ~ "9" Same as the char value Depends on actual inputted character
VK_MULTIPLY (0x6A) "Multiply" "*" "Multiply" Depends on actual inputted character
VK_ADD (0x6B) "Add" "+" "Add" Depends on actual inputted character
VK_SEPARATOR (0x6C) "Separator" null "Separator" Depends on actual inputted character
VK_SUBTRACT (0x6D) "Subtract" "-" "Subtract" Depends on actual inputted character
VK_DECIMAL (0x6E) "Decimal" "." "Decimal" Depends on actual inputted character
VK_DIVIDE (0x6F) "Divide" "/" "Divide" Depends on actual inputted character
VK_F1 (0x70)VK_F24 (0x87) "F1" ~ "F24" null "F1" ~ "F24" ""
VK_NUMLOCK (0x90) "NumLock" null "NumLock" ""
VK_SCROLL (0x91) "Scroll" null "ScrollLock" ""
VK_LSHIFT (0xA0) "Shift" null "Shift" ""
VK_RSHIFT (0xA1) "Shift" null "Shift" ""
VK_LCONTROL (0xA2) "Control" null "Control" ""
VK_RCONTROL (0xA3) "Control" null "Control" ""
VK_LMENU (0xA4) "Alt" null "Alt" ""
VK_RMENU (0xA5) "Alt" null "Alt" ""
VK_BROWSER_BACK (0xA6) "BrowserBack" null "BrowserBack" ""
VK_BROWSER_FORWARD (0xA7) "BrowserForward" null "BrowserForward" ""
VK_BROWSER_REFRESH (0xA8) "BrowserRefresh" null "BrowserRefresh" ""
VK_BROWSER_STOP (0xA9) "BrowserStop" null "BrowserStop" ""
VK_BROWSER_SEARCH (0xAA) "BrowserSearch" null "BrowserSearch" ""
VK_BROWSER_FAVORITES (0xAB) "BrowserFavorites" null "BrowserFavorites" ""
VK_BROWSER_HOME (0xAC) "BrowserHome" null "BrowserHome" ""
VK_VOLUME_MUTE (0xAD) "VolumeMute" null "VolumeMute" ""
VK_VOLUME_DOWN (0xAE) "VolumeDown" null "VolumeDown" ""
VK_VOLUME_UP (0xAF) "VolumeUp" null "VolumeUp" ""
VK_MEDIA_NEXT_TRACK (0xB0) "MediaNextTrack" null "MediaNextTrack" ""
VK_MEDIA_PREV_TRACK (0xB1) "MediaPreviousTrack" null "MediaPreviousTrack" ""
VK_MEDIA_STOP (0xB2) "MediaStop" null "MediaStop" ""
VK_MEDIA_PLAY_PAUSE (0xB3) "MediaPlayPause" null "MediaPlayPause" ""
VK_LAUNCH_MAIL (0xB4) "LaunchMail" null "LaunchMail" ""
VK_LAUNCH_MEDIA_SELECT (0xB5) "SelectMedia" null "SelectMedia" ""
VK_LAUNCH_APP1 (0xB6) "LaunchApplication1" null "LaunchApplication1" ""
VK_LAUNCH_APP2 (0xB7) "LaunchApplication2" null "LaunchApplication2" ""
VK_PROCESSKEY (0xE5) "Unidentified" (tested without IME) null "Unidentified" ""
VK_PACKET (0xE7) U+0000 (null character at 1st, tested without SendInput() API) null "Unidentified" ""
VK_ATTN (0xF6) "Attn" null "Attn" ""
VK_CRSEL (0xF7) "Crsel" null "Crsel" ""
VK_EXSEL (0xF8) "Exsel" null "Exsel" ""
VK_EREOF (0xF9) "EraseEof" null "EraseEof" ""
VK_PLAY (0xFA) "Play" null "Play" ""
VK_ZOOM (0xFB) "Zoom" null "Zoom" ""
VK_NONAME (0xFC) "Unidentified" null "Unidentified" ""
VK_PA1 (0xFD) "Unidentified" null "Unidentified" ""
VK_OEM_CLEAR (0xFE) "Clear" null "Clear" ""
key names and char values on Mac
Native virtual keycodes Gecko (plan)
kVK_ISO_Section (0x0A) "Unidentified" ""
kVK_Return (0x24) "Enter" ""
kVK_Tab (0x30) "Tab" U+0009
kVK_Space (0x31) "Spacebar" Depends on actual inputted character
kVK_Delete (0x33) "Backspace" U+0008
Enter key on keypad of PowerBook (0x34) "Enter" ""
kVK_Escape (0x35) "Esc" U+001B
right-command key (0x36) "Meta" ""
kVK_Command (0x37) "Meta" ""
kVK_Shift (0x38) "Shift" ""
kVK_CapsLock (0x39) "CapsLock" ""
kVK_Option (0x3A) "Alt" ""
kVK_Control (0x3B) "Control" ""
kVK_RightShift (0x3C) "Shift" ""
kVK_RightOption (0x3D) "Alt" ""
kVK_RightControl (0x3E) "Control" ""
kVK_Function (0x3F) "Fn" ""
kVK_F17 (0x40) "F17" ""
kVK_ANSI_KeypadDecimal (0x41) "Decimal" Depends on actual inputted character
kVK_ANSI_KeypadMultiply (0x43) "Multiply" Depends on actual inputted character
kVK_ANSI_KeypadPlus (0x45) "Add" Depends on actual inputted character
kVK_ANSI_KeypadClear (0x47) "Clear" ""
kVK_VolumeUp (0x48) "VolumeUp" ""
kVK_VolumeDown (0x49) "VolumeDown" ""
kVK_Mute (0x4A) "VolumeMute" ""
kVK_ANSI_KeypadDivide (0x4B) "Divide" Depends on actual inputted character
kVK_ANSI_KeypadEnter (0x4C) "Enter" ""
kVK_ANSI_KeypadMinus (0x4E) "Subtract" Depends on actual inputted character
kVK_F18 (0x4F) "F18" ""
kVK_F19 (0x50) "F19" ""
kVK_ANSI_KeypadEquals (0x51) Same as the char value Depends on actual inputted character
kVK_ANSI_Keypad0 (0x52) Same as the char value Depends on actual inputted character
kVK_ANSI_Keypad1 (0x53) Same as the char value Depends on actual inputted character
kVK_ANSI_Keypad2 (0x54) Same as the char value Depends on actual inputted character
kVK_ANSI_Keypad3 (0x55) Same as the char value Depends on actual inputted character
kVK_ANSI_Keypad4 (0x56) Same as the char value Depends on actual inputted character
kVK_ANSI_Keypad5 (0x57) Same as the char value Depends on actual inputted character
kVK_ANSI_Keypad6 (0x58) Same as the char value Depends on actual inputted character
kVK_ANSI_Keypad7 (0x59) Same as the char value Depends on actual inputted character
kVK_F20 (0x5A) "F20" ""
kVK_ANSI_Keypad8 (0x5B) Same as the char value Depends on actual inputted character
kVK_ANSI_Keypad9 (0x5C) Same as the char value Depends on actual inputted character
kVK_JIS_KeypadComma (0x5F) "Separator" Depends on actual inputted character
kVK_F5 (0x60) "F5" ""
kVK_F6 (0x61) "F6" ""
kVK_F7 (0x62) "F7" ""
kVK_F3 (0x63) "F3" ""
kVK_F8 (0x64) "F8" ""
kVK_F9 (0x65) "F9" ""
kVK_JIS_Eisu (0x66) "RomanCharacters" ""
kVK_F11 (0x67) "F11" ""
kVK_JIS_Kana (0x68) "KanjiMode" ""
kVK_F13 (0x69) "F13" ""
kVK_F16 (0x6A) "F16" ""
kVK_F14 (0x6B) "F14" ""
kVK_F10 (0x6D) "F10" ""
kVK_F12 (0x6F) "F12" ""
kVK_F15 (0x71) "F15" ""
kVK_Help (0x72) "Help" ""
kVK_Home (0x73) "Home" ""
kVK_PageUp (0x74) "PageUp" ""
kVK_ForwardDelete (0x75) "Del" U+007F
kVK_F4 (0x76) "F4" ""
kVK_End (0x77) "End" ""
kVK_F2 (0x78) "F2" ""
kVK_PageDown (0x79) "PageDown" ""
kVK_F1 (0x7A) "F1" ""
kVK_LeftArrow (0x7B) "Left" ""
kVK_RightArrow (0x7C) "Right" ""
kVK_DownArrow (0x7D) "Down" ""
kVK_UpArrow (0x7E) "Up" ""
keynames and char values on Android and Firefox OS
Android keycode Gecko (plan)
AKEYCODE_UNKNOWN (0) "Unidentified" ""
AKEYCODE_SOFT_LEFT (1) "Unidentified" ""
AKEYCODE_SOFT_RIGHT (2) "Unidentified" ""
AKEYCODE_HOME (3) "Exit" ""
AKEYCODE_BACK (4) "BrowserBack" ""
AKEYCODE_CALL (5) "Unidentified" ""
AKEYCODE_ENDCALL (6) "Unidentified" ""
AKEYCODE_0 (7)AKEYCODE_9 (16) Same as the char value Depends on actual inputted character
AKEYCODE_STAR (17) Same as the char value Depends on actual inputted character
AKEYCODE_POUND (18) Same as the char value Depends on actual inputted character
AKEYCODE_DPAD_UP (19) "Up" ""
AKEYCODE_DPAD_DOWN (20) "Down" ""
AKEYCODE_DPAD_LEFT (21) "Left" ""
AKEYCODE_DPAD_RIGHT (22) "Right" ""
AKEYCODE_DPAD_CENTER (23) "Accept" ""
AKEYCODE_VOLUME_UP (24) "VolumeUp" ""
AKEYCODE_VOLUME_DOWN (25) "VolumeDown" ""
AKEYCODE_POWER (26) "Power" ""
AKEYCODE_CAMERA (27) "Camera" ""
AKEYCODE_CLEAR (28) "Clear" ""
AKEYCODE_A (29)AKEYCODE_Z (54) Same as the char value Depends on actual inputted character
AKEYCODE_COMMA (55) Same as the char value Depends on actual inputted character
AKEYCODE_PERIOD (56) Same as the char value Depends on actual inputted character
AKEYCODE_ALT_LEFT (57) "Alt" ""
AKEYCODE_ALT_RIGHT (58) "Alt" ""
AKEYCODE_SHIFT_LEFT (59) "Shift" ""
AKEYCODE_SHIFT_RIGHT (60) "Shift" ""
AKEYCODE_TAB (61) "Tab" U+0009
AKEYCODE_SPACE (62) "Spacebar" Depends on actual inputted character
AKEYCODE_SYM (63) "Unidentified" ""
AKEYCODE_EXPLORER (64) "LaunchApplication1" ""
AKEYCODE_ENVELOPE (65) "LaunchMail" ""
AKEYCODE_ENTER (66) "Enter" ""
AKEYCODE_DEL (67) "Backspace" U+0008
AKEYCODE_GRAVE (68) Same as the char value Depends on actual inputted character
AKEYCODE_MINUS (69) Same as the char value Depends on actual inputted character
AKEYCODE_EQUALS (70) Same as the char value Depends on actual inputted character
AKEYCODE_LEFT_BRACKET (71) Same as the char value Depends on actual inputted character
AKEYCODE_RIGHT_BRACKET (72) Same as the char value Depends on actual inputted character
AKEYCODE_BACKSLASH (73) Same as the char value Depends on actual inputted character
AKEYCODE_SEMICOLON (74) Same as the char value Depends on actual inputted character
AKEYCODE_APOSTROPHE (75) Same as the char value Depends on actual inputted character
AKEYCODE_SLASH (76) Same as the char value Depends on actual inputted character
AKEYCODE_AT (77) Same as the char value Depends on actual inputted character
AKEYCODE_NUM (78) "Unidentified" ""
AKEYCODE_HEADSETHOOK (79) "Unidentified" ""
AKEYCODE_FOCUS (80) "Unidentified" ""
AKEYCODE_PLUS (81) Same as the char value Depends on actual inputted character
AKEYCODE_MENU (82) "Menu" ""
AKEYCODE_NOTIFICATION (83) "Unidentified" ""
AKEYCODE_SEARCH (84) "BrowserSearch" ""
AKEYCODE_MEDIA_PLAY_PAUSE (85) "MediaPlayPause" ""
AKEYCODE_MEDIA_STOP (86) "MediaStop" ""
AKEYCODE_MEDIA_NEXT (87) "MediaNextTrack" ""
AKEYCODE_MEDIA_PREVIOUS (88) "MediaPreviousTrack" ""
AKEYCODE_MEDIA_REWIND (89) "MediaRewind" ""
AKEYCODE_MEDIA_FAST_FORWARD (90) "FastFwd" ""
AKEYCODE_MUTE (91) "Unidentified" ""
AKEYCODE_PAGE_UP (92) "PageUp" ""
AKEYCODE_PAGE_DOWN (93) "PageDown" ""
AKEYCODE_PICTSYMBOLS (94) "Unidentified" ""
AKEYCODE_SWITCH_CHARSET (95) "ModeChange" ""
AKEYCODE_BUTTON_A (96) "Unidentified" ""
AKEYCODE_BUTTON_B (97) "Unidentified" ""
AKEYCODE_BUTTON_C (98) "Unidentified" ""
AKEYCODE_BUTTON_X (99) "Unidentified" ""
AKEYCODE_BUTTON_Y (100) "Unidentified" ""
AKEYCODE_BUTTON_Z (101) "Unidentified" ""
AKEYCODE_BUTTON_L1 (102) "Unidentified" ""
AKEYCODE_BUTTON_R1 (103) "Unidentified" ""
AKEYCODE_BUTTON_L2 (104) "Unidentified" ""
AKEYCODE_BUTTON_R2 (105) "Unidentified" ""
AKEYCODE_BUTTON_THUMBL (106) "Unidentified" ""
AKEYCODE_BUTTON_THUMBR (107) "Unidentified" ""
AKEYCODE_BUTTON_START (108) "Unidentified" ""
AKEYCODE_BUTTON_SELECT (109) "Unidentified" ""
AKEYCODE_BUTTON_MODE (110) "Unidentified" ""
AKEYCODE_ESCAPE (111) "Esc" U+001B
AKEYCODE_FORWARD_DEL (112) "Del" U+007F
AKEYCODE_CTRL_LEFT (113) "Control" ""
AKEYCODE_CTRL_RIGHT (114) "Control" ""
AKEYCODE_CAPS_LOCK (115) "CapsLock" ""
AKEYCODE_SCROLL_LOCK (116) "ScrollLock" ""
AKEYCODE_META_LEFT (117) "Meta" ""
AKEYCODE_META_RIGHT (118) "Meta" ""
AKEYCODE_FUNCTION (119) "Fn" ""
AKEYCODE_SYSRQ (120) "PrintScreen" ""
AKEYCODE_BREAK (121) "Pause" ""
AKEYCODE_MOVE_HOME (122) "Home" ""
AKEYCODE_MOVE_END (123) "End" ""
AKEYCODE_INSERT (124) "Insert" ""
AKEYCODE_FORWARD (125) "BrowserForward" ""
AKEYCODE_MEDIA_PLAY (126) "MediaPlay" ""
AKEYCODE_MEDIA_PAUSE (127) "MediaPause" ""
AKEYCODE_MEDIA_CLOSE (128) "Unidentified" ""
AKEYCODE_MEDIA_EJECT (129) "Eject" ""
AKEYCODE_MEDIA_RECORD (130) "MediaRecord" ""
AKEYCODE_F1 (131)AKEYCODE_F12 (142) "F1""F12" ""
AKEYCODE_NUM_LOCK (143) "NumLock" ""
AKEYCODE_NUMPAD_0 (144)AKEYCODE_NUMPAD_9 (153) Same as the char value Depends on actual inputted character
AKEYCODE_NUMPAD_DIVIDE (154) "Divide" Depends on actual inputted character
AKEYCODE_NUMPAD_MULTIPLY (155) "Multiply" Depends on actual inputted character
AKEYCODE_NUMPAD_SUBTRACT (156) "Subtract" Depends on actual inputted character
AKEYCODE_NUMPAD_ADD (157) "Add" Depends on actual inputted character
AKEYCODE_NUMPAD_DOT (158) "Decimal" Depends on actual inputted character
AKEYCODE_NUMPAD_COMMA (159) "Separator" Depends on actual inputted character
AKEYCODE_NUMPAD_ENTER (160) "Enter" ""
AKEYCODE_NUMPAD_EQUALS (161) "Equals" Depends on actual inputted character
AKEYCODE_NUMPAD_LEFT_PAREN (162) Same as the char value Depends on actual inputted character
AKEYCODE_NUMPAD_RIGHT_PAREN (163) Same as the char value Depends on actual inputted character
AKEYCODE_VOLUME_MUTE (164) "VolumeMute" ""
AKEYCODE_INFO (165) "Info" ""
AKEYCODE_CHANNEL_UP (166) "ChannelUp" ""
AKEYCODE_CHANNEL_DOWN (167) "ChannelDown" ""
AKEYCODE_ZOOM_IN (168) "Unidentified" ""
AKEYCODE_ZOOM_OUT (169) "Unidentified" ""
AKEYCODE_TV (170) "Live" ""
AKEYCODE_WINDOW (171) "PinPToggle" ""
AKEYCODE_GUIDE (172) "Guide" ""
AKEYCODE_DVR (173) "Unidentified" ""
AKEYCODE_BOOKMARK (174) "BrowserFavorites" ""
AKEYCODE_CAPTIONS (175) "Subtitle" ""
AKEYCODE_SETTINGS (176) "Settings" ""
AKEYCODE_TV_POWER (177) "Unidentified" ""
AKEYCODE_TV_INPUT (178) "Unidentified" ""
AKEYCODE_STB_POWER (179) "Unidentified" ""
AKEYCODE_STB_INPUT (180) "Unidentified" ""
AKEYCODE_AVR_POWER (181) "Unidentified" ""
AKEYCODE_AVR_INPUT (182) "Unidentified" ""
AKEYCODE_PROG_RED (183) "Red" ""
AKEYCODE_PROG_GREEN (184) "Green" ""
AKEYCODE_PROG_YELLOW (185) "Yellow" ""
AKEYCODE_PROG_BLUE (186) "Blue" ""
AKEYCODE_APP_SWITCH (187) "Apps" ""
AKEYCODE_BUTTON_1 (188)AKEYCODE_BUTTON_16 (203) "Unidentified" ""
AKEYCODE_LANGUAGE_SWITCH (204) "Unidentified" ""
AKEYCODE_MANNER_MODE (205) "Unidentified" ""
AKEYCODE_3D_MODE (206) "Unidentified" ""
AKEYCODE_CONTACTS (207) "Unidentified" ""
AKEYCODE_CALENDAR (208) "Unidentified" ""
AKEYCODE_MUSIC (209) "Unidentified" ""
AKEYCODE_CALCULATOR (210) "Unidentified" ""
AKEYCODE_ZENKAKU_HANKAKU (211) "Unidentified" ""
AKEYCODE_EISU (212) "RomanCharacters" ""
AKEYCODE_MUHENKAN (213) "Nonconvert" ""
AKEYCODE_HENKAN (214) "Convert" ""
AKEYCODE_KATAKANA_HIRAGANA (215) "Unidentified" ""
AKEYCODE_YEN (216) Same as the char value Depends on actual inputted character
AKEYCODE_RO (217) Same as the char value Depends on actual inputted character
AKEYCODE_KANA (218) "KanjiMode" ""
AKEYCODE_ASSIST (219) "Help" ""
key names and char values on Linux (GTK)
keysyms Gecko (plan)
GDK_BackSpace "Backspace" U+0008
GDK_Tab "Tab" U+0009
GDK_Linefeed "Unidentified" ""
GDK_Clear "Clear" ""
GDK_Return "Enter ""
GDK_Pause "Pause" ""
GDK_Scroll_Lock "ScrollLock" ""
GDK_Sys_Req "PrintScreen" ""
GDK_Escape "Esc" U+001B
GDK_Delete "Del" U+007F
GDK_Multi_key "Compose" ""
GDK_Codeinput (GDK_KEY_Hangul_Codeinput) "CodeInput" ""
GDK_SingleCandidate (GDK_Kanji_Bangou, GDK_Hangul_SingleCandidate) "Unidentified" ""
GDK_MultipleCandidate (GDK_Hangul_MultipleCandidate) "AllCandidates" ""
GDK_PreviousCandidate (GDK_Hangul_PreviousCandidate) "PreviousCandidate" ""
GDK_Kanji "KanjiMode" ""
GDK_Muhenkan "Nonconvert" ""
GDK_Henkan_Mode "Unidentified" ""
GDK_Henkan "Convert" ""
GDK_Romaji "RomanCharacters" ""
GDK_Hiragana "Hiragana" ""
GDK_Katakana "Katakana" ""
GDK_Hiragana_Katakana "Unidentified" ""
GDK_Zenkaku "FullWidth" ""
GDK_Hankaku "HalfWidth" ""
GDK_Zenkaku_Hankaku "Unidentified" ""
GDK_Touroku "Unidentified" ""
GDK_Massyo "Unidentified" ""
GDK_Kana_Lock "KanaMode" ""
GDK_Kana_Shift "KanaMode" ""
GDK_Eisu_Shift "Alphanumeric" ""
GDK_Eisu_toggle "Alphanumeric" ""
GDK_Zen_Koho "Unidentified" ""
GDK_Mae_Koho "Unidentified" ""
GDK_Home "Home" ""
GDK_Left "Left" ""
GDK_Up "Up" ""
GDK_Right "Right" ""
GDK_Down "Down" ""
GDK_Prior (GDK_Page_Up) "PageUp" ""
GDK_Next (GDK_Page_Down) "PageDown" ""
GDK_End "End" ""
GDK_Begin "Unidentified" ""
GDK_Select "Select" ""
GDK_Print "PrintScreen" ""
GDK_Execute "Execute" ""
GDK_Insert "Insert" ""
GDK_Undo "Undo" ""
GDK_Redo "Unidentified" ""
GDK_Menu "Menu" ""
GDK_Find "Find" ""
GDK_Cancel "Cancel" U+0018
GDK_Help "Help" ""
GDK_Break "Pause" ""

GDK_Mode_switch (GDK_script_switch,
GDK_ISO_Group_Shift, GDK_kana_switch,
GDK_Arabic_switch, GDK_Greek_switch,
GDK_Hebrew_switch, GDK_Hangul_switch)

"AltGraph" ""
GDK_Num_Lock "NumLock" ""
GDK_KP_Space "Spacebar" U+0020
GDK_KP_Tab "Tab" U+0009
GDK_KP_Enter "Enter" ""
GDK_KP_F1 ~ GDK_KP_F4 "F1""F4" ""
GDK_KP_Home "Home" ""
GDK_KP_Left "Left" ""
GDK_KP_Up "Up" ""
GDK_KP_Right "Right" ""
GDK_KP_Down "Down" ""
GDK_KP_Prior (GDK_KP_Page_Up) "PageUp" ""
GDK_KP_Next (GDK_KP_Page_Down) "PageDown" ""
GDK_KP_End "End" ""
GDK_KP_Begin "Unidentified" ""
GDK_KP_Insert "Insert" ""
GDK_KP_Delete "Del" U+007F
GDK_KP_Equal "Equals" Depends on actual inputted character
GDK_KP_Multiply "Multiply" Depends on actual inputted character
GDK_KP_Add "Add" Depends on actual inputted character
GDK_KP_Separator "Separator" Depends on actual inputted character
GDK_KP_Subtract "Subtract" Depends on actual inputted character
GDK_KP_Decimal "Decimal" Depends on actual inputted character
GDK_KP_Divide "Divide" Depends on actual inputted character
GDK_KP_0GDK_KP_9 Same as the char value Depends on actual inputted character
GDK_F1GDK_F10 "F1""F10" ""
GDK_F11 (GDK_L1)GDK_F20 (GDK_L10) "F11""F20" ""
GDK_F21 (GDK_R1)GDK_F35 (GDK_R15) "F21""F35" ""
GDK_Shift_L "Shift" ""
GDK_Shift_R "Shift" ""
GDK_Control_L "Control" ""
GDK_Control_R "Control" ""
GDK_Caps_Lock "CapsLock" ""
GDK_Shift_Lock "Shift" ""
GDK_Meta_L "Meta" ""
GDK_Meta_R "Meta" ""
GDK_Alt_L "Alt" ""
GDK_Alt_R "Alt" ""
GDK_Super_L "OS" ""
GDK_Super_R "OS" ""
GDK_Hyper_L "OS" ""
GDK_Hyper_R "OS" ""
GDK_ISO_Lock "Unidentified" ""
GDK_ISO_Level2_Latch "Unidentified" ""
GDK_ISO_Level3_Shift "AltGraph" ""
GDK_ISO_Level3_Latch "AltGraph" ""
GDK_ISO_Level3_Lock "AltGraph" ""
GDK_ISO_Level5_Shift "AltGraph" ""
GDK_ISO_Level5_Latch "AltGraph" ""
GDK_ISO_Level5_Lock "AltGraph" ""
GDK_ISO_Group_Latch "Unidentified" ""
GDK_ISO_Group_Lock "Unidentified" ""
GDK_ISO_Next_Group "Unidentified" ""
GDK_ISO_Next_Group_Lock "Unidentified" ""
GDK_ISO_Prev_Group "Unidentified" ""
GDK_ISO_Prev_Group_Lock "Unidentified" ""
GDK_ISO_First_Group "Unidentified" ""
GDK_ISO_First_Group_Lock "Unidentified" ""
GDK_ISO_Last_Group "Unidentified" ""
GDK_ISO_Last_Group_Lock "Unidentified" ""
GDK_ISO_Left_Tab "Unidentified" ""
GDK_ISO_Move_Line_Up "Unidentified" ""
GDK_ISO_Move_Line_Down "Unidentified" ""
GDK_ISO_Partial_Line_Up "Unidentified" ""
GDK_ISO_Partial_Line_Down "Unidentified" ""
GDK_ISO_Partial_Space_Left "Unidentified" ""
GDK_ISO_Partial_Space_Right "Unidentified" ""
GDK_ISO_Set_Margin_Left "Unidentified" ""
GDK_ISO_Set_Margin_Right "Unidentified" ""
GDK_ISO_Release_Margin_Left "Unidentified" ""
GDK_ISO_Release_Margin_Right "Unidentified" ""
GDK_ISO_Release_Both_Margins "Unidentified" ""
GDK_ISO_Fast_Cursor_Left "Unidentified" ""
GDK_ISO_Fast_Cursor_Right "Unidentified" ""
GDK_ISO_Fast_Cursor_Up "Unidentified" ""
GDK_ISO_Fast_Cursor_Down "Unidentified" ""
GDK_ISO_Continuous_Underline "Unidentified" ""
GDK_ISO_Discontinuous_Underline "Unidentified" ""
GDK_ISO_Emphasize "Unidentified" ""
GDK_ISO_Center_Object "Unidentified" ""
GDK_ISO_Enter "Enter" ""
GDK_First_Virtual_Screen "Unidentified" ""
GDK_Prev_Virtual_Screen "Unidentified" ""
GDK_Next_Virtual_Screen "Unidentified" ""
GDK_Last_Virtual_Screen "Unidentified" ""
GDK_Terminate_Server "Unidentified" ""
GDK_AccessX_Enable "Unidentified" ""
GDK_AccessX_Feedback_Enable "Unidentified" ""
GDK_RepeatKeys_Enable "Unidentified" ""
GDK_SlowKeys_Enable "Unidentified" ""
GDK_BounceKeys_Enable "Unidentified" ""
GDK_StickyKeys_Enable "Unidentified" ""
GDK_MouseKeys_Enable "Unidentified" ""
GDK_MouseKeys_Accel_Enable "Unidentified" ""
GDK_Overlay1_Enable "Unidentified" ""
GDK_Overlay2_Enable "Unidentified" ""
GDK_AudibleBell_Enable "Unidentified" ""
GDK_Pointer_* "Unidentified" ""
GDK_ch "Unidentified" ""
GDK_Ch "Unidentified" ""
GDK_CH "Unidentified" ""
GDK_c_h "Unidentified" ""
GDK_C_h "Unidentified" ""
GDK_C_H "Unidentified" ""
GDK_3270_Duplicate "Unidentified" ""
GDK_3270_FieldMark "Unidentified" ""
GDK_3270_Right2 "Unidentified" ""
GDK_3270_Left2 "Unidentified" ""
GDK_3270_BackTab "Unidentified" ""
GDK_3270_EraseEOF "EraseEof" ""
GDK_3270_EraseInput "Unidentified" ""
GDK_3270_Reset "Unidentified" ""
GDK_3270_Quit "Unidentified" ""
GDK_3270_PA1 "Unidentified" ""
GDK_3270_PA2 "Unidentified" ""
GDK_3270_PA3 "Unidentified" ""
GDK_3270_Test "Unidentified" ""
GDK_3270_Attn "Attn" ""
GDK_3270_CursorBlink "Unidentified" ""
GDK_3270_AltCursor "Unidentified" ""
GDK_3270_KeyClick "Unidentified" ""
GDK_3270_Jump "Unidentified" ""
GDK_3270_Ident "Unidentified" ""
GDK_3270_Rule "Unidentified" ""
GDK_3270_Copy "Unidentified" ""
GDK_3270_Play "Play" ""
GDK_3270_Setup "Unidentified" ""
GDK_3270_Record "Unidentified" ""
GDK_3270_ChangeScreen "Unidentified" ""
GDK_3270_DeleteWord "Unidentified" ""
GDK_3270_ExSelect "Exsel" ""
GDK_3270_CursorSelect "Crsel" ""
GDK_3270_PrintScreen "PrintScreen" ""
GDK_3270_Enter "Enter" ""
GDK_space "Spacebar" U+0020
GDK_Hangul "Unidentified" ""
GDK_Hangul_Start "Unidentified" ""
GDK_Hangul_End "Unidentified" ""
GDK_Hangul_Hanja "Unidentified" ""
GDK_Hangul_Jamo "Unidentified" ""
GDK_Hangul_Romaja "Unidentified" ""
GDK_Hangul_Jeonja "Unidentified" ""
GDK_Hangul_Banja "Unidentified" ""
GDK_Hangul_PreHanja "Unidentified" ""
GDK_Hangul_PostHanja "Unidentified" ""
GDK_ModeLock "Unidentified" ""
GDK_MonBrightnessUp "BrightnessUp" ""
GDK_MonBrightnessDown "BrightnessDown" ""
GDK_KbdLightOnOff "Unidentified" ""
GDK_KbdBrightnessUp "Unidentified" ""
GDK_KbdBrightnessDown "Unidentified" ""
GDK_Standby "Unidentified" ""
GDK_AudioLowerVolume "VolumeDown" ""
GDK_AudioMute "VolumeMute" ""
GDK_AudioRaiseVolume "VolumeUp" ""
GDK_AudioPlay "MediaPlay" ""
GDK_AudioStop "MediaStop" ""
GDK_AudioPrev "MediaPreviousTrack" ""
GDK_AudioNext "MediaNextTrack" ""
GDK_HomePage "BrowserHome" ""
GDK_Mail "LaunchMail" ""
GDK_Start "Unidentified" ""
GDK_Search "BrowserSearch" ""
GDK_AudioRecord "MediaRecord" ""
GDK_Calculator "Unidentified" ""
GDK_Memo "Unidentified" ""
GDK_ToDoList "Unidentified" ""
GDK_Calendar "Unidentified" ""
GDK_PowerDown "Unidentified" ""
GDK_ContrastAdjust "Unidentified" ""
GDK_RockerUp "Unidentified" ""
GDK_RockerDown "Unidentified" ""
GDK_RockerEnter "Unidentified" ""
GDK_Back "BrowserBack" ""
GDK_Forward "BrowserForward" ""
GDK_Stop "BrowserStop" ""
GDK_Refresh "BrowserRefresh" ""
GDK_PowerOff "Power" ""
GDK_WakeUp "Unidentified" ""
GDK_Eject "Eject" ""
GDK_ScreenSaver "Unidentified" ""
GDK_WWW "Unidentified" ""
GDK_Sleep "Unidentified" ""
GDK_Favorites "Unidentified" ""
GDK_AudioPause "MediaPause" ""
GDK_AudioMedia "Unidentified" ""
GDK_MyComputer "Unidentified" ""
GDK_VendorHome "Unidentified" ""
GDK_LightBulb "Unidentified" ""
GDK_Shop "Unidentified" ""
GDK_History "Unidentified" ""
GDK_OpenURL "Unidentified" ""
GDK_AddFavorite "Unidentified" ""
GDK_HotLinks "Unidentified" ""
GDK_BrightnessAdjust "Dimmer" ""
GDK_Finance "Unidentified" ""
GDK_Community "Unidentified" ""
GDK_AudioRewind "MediaRewind" ""
GDK_BackForward "Unidentified" ""
GDK_Launch0 ~ GDK_Launch9 "LaunchApplication1""LaunchApplication10" ""
GDK_LaunchA ~ GDK_LaunchF "LaunchApplication11""LaunchApplication16" ""
GDK_ApplicationLeft "Unidentified" ""
GDK_ApplicationRight "Unidentified" ""
GDK_Book "Unidentified" ""
GDK_CD "Unidentified" ""
GDK_WindowClear "Unidentified" ""
GDK_Close "Unidentified" ""
GDK_Copy "Copy" ""
GDK_Cut "Cut" ""
GDK_Display "Unidentified" ""
GDK_DOS "Unidentified" ""
GDK_Documents "Unidentified" ""
GDK_Excel "Unidentified" ""
GDK_Explorer "Unidentified" ""
GDK_Game "Unidentified" ""
GDK_Go "Unidentified" ""
GDK_iTouch "Unidentified" ""
GDK_LogOff "Unidentified" ""
GDK_Market "Unidentified" ""
GDK_Meeting "Unidentified" ""
GDK_MenuKB "Unidentified" ""
GDK_MenuPB "Unidentified" ""
GDK_MySites "Unidentified" ""
GDK_New "Unidentified" ""
GDK_News "Unidentified" ""
GDK_OfficeHome "Unidentified" ""
GDK_Open "Unidentified" ""
GDK_Option "Unidentified" ""
GDK_Paste "Paste" ""
GDK_Phone "Unidentified" ""
GDK_Reply "Unidentified" ""
GDK_Reload "BrowserRefresh" ""
GDK_RotateWindows "Unidentified" ""
GDK_RotationPB "Unidentified" ""
GDK_RotationKB "Unidentified" ""
GDK_Save "Unidentified" ""
GDK_ScrollUp "Unidentified" ""
GDK_ScrollDown "Unidentified" ""
GDK_ScrollClick "Unidentified" ""
GDK_Send "Unidentified" ""
GDK_Spell "Unidentified" ""
GDK_SplitScreen "Unidentified" ""
GDK_Support "Unidentified" ""
GDK_TaskPane "Unidentified" ""
GDK_Terminal "Unidentified" ""
GDK_Tools "Unidentified" ""
GDK_Travel "Unidentified" ""
GDK_UserPB "Unidentified" ""
GDK_User1KB "Unidentified" ""
GDK_User2KB "Unidentified" ""
GDK_Video "Unidentified" ""
GDK_WheelButton "Unidentified" ""
GDK_Word "Unidentified" ""
GDK_Xfer "Unidentified" ""
GDK_ZoomIn "Unidentified" ""
GDK_ZoomOut "Unidentified" ""
GDK_Away "Unidentified" ""
GDK_Messenger "Unidentified" ""
GDK_WebCam "Unidentified" ""
GDK_MailForward "Unidentified" ""
GDK_Pictures "Unidentified" ""
GDK_Music "Unidentified" ""
GDK_Battery "Unidentified" ""
GDK_Bluetooth "Unidentified" ""
GDK_WLAN "Unidentified" ""
GDK_UWB "Unidentified" ""
GDK_AudioForward "Unidentified" ""
GDK_AudioRepeat "Unidentified" ""
GDK_AudioRandomPlay "RandomToggle" ""
GDK_Subtitle "Subtitle" ""
GDK_AudioCycleTrack "Unidentified" ""
GDK_CycleAngle "Unidentified" ""
GDK_FrameBack "Unidentified" ""
GDK_FrameForward "Unidentified" ""
GDK_Time "Unidentified" ""
GDK_SelectButton "Unidentified" ""
GDK_View "Unidentified" ""
GDK_TopMenu "Unidentified" ""
GDK_Red "Red" ""
GDK_Green "Green" ""
GDK_Yellow "Yellow" ""
GDK_Blue "Blue" ""
GDK_Suspend "Unidentified" ""
GDK_Hibernate "Unidentified" ""
GDK_TouchpadToggle "Unidentified" ""
GDK_TouchpadOn "Unidentified" ""
GDK_TouchpadOff "Unidentified" ""
GDK_AudioMicMute "Unidentified" ""
GDK_Switch_VT_1GDK_Switch_VT_12 "Unidentified" ""
GDK_Ungrab "Unidentified" ""
GDK_ClearGrab "Unidentified" ""
GDK_Next_VMode "Unidentified" ""
GDK_Prev_VMode "Unidentified" ""
GDK_LogWindowTree "Unidentified" ""
GDK_LogGrabInfo "Unidentified" ""

Specification

DOM 3 Events: KeyboardEvent

Example

<!DOCTYPE html>
<html>
<head>
<script>
var metaChar = false;
var exampleKey = 16;

function keyEvent(event) {
  var key = event.keyCode || event.which;
  var keychar = String.fromCharCode(key);
  if (key == exampleKey) {
    metaChar = true;
  }
  if (key != exampleKey) {
    if (metaChar) {
      alert("Combination of metaKey + " + keychar);
      metaChar = false;
    } else {
      alert("Key pressed " + key);
    }
  }
}

function metaKeyUp (event) {
  var key = event.keyCode || event.which;

  if (key == exampleKey) {
    metaChar = false;
  }
}
</script>
</head>

<body onkeydown="keyEvent(event)" onkeyup="metaKeyUp(event)">
</body>
</html>
""""

Revision Source

<p><code>KeyboardEvent</code> objects describe a user interaction with the keyboard. Each event describes a key; the event type ({{domevent('keydown')}}, {{domevent('keypress')}}, or {{domevent('keyup')}}) identifies what kind of activity was performed.</p>
<div class="note">
  <strong>Note:</strong> The <code>KeyboardEvent</code> indicates just what's happening on a key. When you need to handle text input, use HTML5 <code><a href="/en-US/docs/DOM/DOM_event_reference/input" rel="custom">input</a></code> event instead. For example, if user inputs text from hand-writing system like tablet PC, key events may not be fired.</div>
<h2 id="Method_overview">Method overview</h2>
<table class="standard-table">
  <tbody>
    <tr>
      <td><code>boolean <a href="/en-US/docs/DOM/KeyboardEvent#getModifierState()" title="en-US/docs/DOM/KeyboardEvent#getModifierState()">getModifierState</a>(in DOMString keyArg);</code></td>
    </tr>
    <tr>
      <td><code>void <a href="/en-US/docs/DOM/KeyboardEvent#initKeyboardEvent()" title="en-US/docs/DOM/KeyboardEvent#initKeyboardEvent()">initKeyboardEvent</a>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in views::AbstractView viewArg, in DOMString charArg, in DOMString keyArg, in unsigned long locationArg, in DOMString modifiersListArg, in boolean repeat, in DOMString localeArg);</code></td>
    </tr>
  </tbody>
</table>
<h2 id="Attributes">Attributes</h2>
<table class="standard-table" style="width: auto;">
  <tbody>
    <tr>
      <td class="header">Attribute</td>
      <td class="header">Type</td>
      <td class="header">Description</td>
    </tr>
    <tr>
      <td><code>altKey</code></td>
      <td><code>boolean</code></td>
      <td><code>true</code> if the Alt (or Option, on Mac) key was active when the key event was generated. <strong>Read only.</strong></td>
    </tr>
    <tr>
      <td><code>char</code></td>
      <td><a href="/en-US/docs/DOMString" title="en-US/docs/DOMString"><code>DOMString</code></a></td>
      <td>
        <p>The character value of the key. If the key corresponds to a printable character, this value is a non-empty Unicode string containing that character. If the key doesn't have a printable representation, this is an empty string. See <a href="/en-US/docs/DOM/KeyboardEvent#Key_names_and_Char_values" title="en-US/docs/DOM/KeyboardEvent#Key_names_and_Char_values">key names and char values</a> for the detail. <strong>Read only.</strong></p>
        <div class="note">
          <strong>Note:</strong> If the key is used as a macro that inserts multiple characters, this attribute's value is the entire string, not just the first character.</div>
        <div class="geckoVersionNote" style="undefined">
          <p class="note">{{gecko_callout_unimplemented("680830")}}</p>
          <p class="note">This attribute is not implemented in Gecko at this time.</p>
        </div>
      </td>
    </tr>
    <tr>
      <td><code>charCode</code> {{deprecated_inline()}}</td>
      <td><code>unsigned long</code></td>
      <td>
        <p>The Unicode reference number of the key; this attribute is used only by the {{domevent('keypress')}} event. For keys whose <code>char</code> attribute contains multiple characters, this is the Unicode value of the first character in that attribute. <strong>Read only.</strong></p>
        <div class="warning">
          <strong>Warning:</strong> This attribute is deprecated; you should use <code>char</code> instead, if available.</div>
      </td>
    </tr>
    <tr>
      <td><code>ctrlKey</code></td>
      <td><code>boolean</code></td>
      <td><code>true</code> if the Control key was active when the key event was generated. <strong>Read only.</strong></td>
    </tr>
    <tr>
      <td><code>key</code></td>
      <td><a href="/en-US/docs/DOMString" title="en-US/docs/DOMString"><code>DOMString</code></a></td>
      <td>
        <p>The key value of the key represented by the event. If the value has a printed representation, this attribute's value is the same as the <code>char</code> attribute. Otherwise, it's one of the key value strings specified in {{anch("Key values")}}. If the key can't be identified, this is the string "Unidentified". See <a href="/en-US/docs/DOM/KeyboardEvent#Key_names_and_Char_values" title="en-US/docs/DOM/KeyboardEvent#Key_names_and_Char_values">key names and char values</a> for the detail. <strong>Read only.</strong></p>
        <div class="geckoVersionNote" style="undefined">
          <p class="note">{{gecko_callout_unimplemented("680830")}}</p>
          <p class="note">This attribute is not implemented in Gecko at this time.</p>
        </div>
      </td>
    </tr>
    <tr>
      <td><code>keyCode</code> {{deprecated_inline()}}</td>
      <td>
        <p><code>unsigned long</code></p>
      </td>
      <td>
        <p>A system and implementation dependent numerical code identifying the unmodified value of the pressed key. This is usually the decimal ASCII ({{RFC(20)}}) or Windows 1252 code corresponding to the key; see {{anch("Virtual key codes")}} for a list of Gecko's keyCode values. If the key can't be identified, this value is 0. <strong>Read only.</strong></p>
        <div class="warning">
          <strong>Warning:</strong> This attribute is deprecated; you should use <code>key</code> instead, if available.</div>
      </td>
    </tr>
    <tr>
      <td><code>locale</code></td>
      <td><a href="/en-US/docs/DOMString" title="en-US/docs/DOMString"><code>DOMString</code></a></td>
      <td>
        <p>A locale string indicating the locale the keyboard is configured for. This may be the empty string if the browser or device doesn't know the keyboard's locale. <strong>Read only.</strong></p>
        <div class="note">
          <strong>Note:</strong> This does not describe the locale of the data being entered. A user may be using one keyboard layout while typing text in a different language.</div>
      </td>
    </tr>
    <tr>
      <td>
        <p><code><a name="Attributes_location"></a></code><a name="Attributes_location"><code>location </code>{{dom_level("3")}} {{gecko_minversion_inline("15.0")}}</a></p>
      </td>
      <td><code>unsigned long</code></td>
      <td>
        <p>The location of the key on the keyboard or other input device; see {{anch("Key location constants")}} below. <strong>Read only.</strong></p>
      </td>
    </tr>
    <tr>
      <td><code>metaKey</code></td>
      <td><code>boolean</code></td>
      <td><code>true</code> if the Meta (or Command, on Mac) key was active when the key event was generated. <strong>Read only.</strong></td>
    </tr>
    <tr>
      <td><code>repeat</code></td>
      <td><code>boolean</code></td>
      <td>
        <p>true if the key is being held down such that it is automatically repeating. <strong>Read only.</strong></p>
        <div class="geckoVersionNote" style="undefined">
          <p class="note">{{gecko_callout_unimplemented("600117")}}</p>
          <p class="note">This attribute is not implemented in Gecko at this time.</p>
        </div>
      </td>
    </tr>
    <tr>
      <td><code>shiftKey</code></td>
      <td><code>boolean</code></td>
      <td><code>true</code> if the Shift key was active when the key event was generated. <strong>Read only.</strong></td>
    </tr>
    <tr>
      <td><code>which</code> {{deprecated_inline()}}</td>
      <td><code>unsigned long</code></td>
      <td>
        <p>A system and implementation dependent numeric code identifying the unmodified value of the pressed key; this is usually the same as <code>keyCode</code>. <strong>Read only.</strong></p>
        <div class="warning">
          <strong>Warning:</strong> This attribute is deprecated; you should use <code>key</code> instead, if available.</div>
      </td>
    </tr>
  </tbody>
</table>
<h2 id="Constants">Constants</h2>
<h3 id="Virtual_key_codes">Virtual key codes</h3>
<p>{{deprecated_header()}}</p>
<p>These constants represent virtual key codes as reported by the deprecated <code>keyCode</code> attribute; that is, keys that do not correspond to printable characters. The diagram below represents a standard ANSI US keyboard; Mac and most PC keyboards have the same layout for the printable characters, and a similar layout for the remaining keys.</p>
<p><img alt="" src="/@api/deki/files/5589/=KB_United_States.svg" /></p>
<p>Starting in Gecko 15 {{geckoRelease("15.0")}}, Gecko decides keycode by following rules for printable keys:</p>
<ol>
  <li>If the system is Windows and native keycode of pressed key indicates that the key is a-z or 0-9, uses a keycode for it.</li>
  <li>If the system is Mac and native keycode of pressed key indicates that the key is 0-9, uses a keycode for it.</li>
  <li>If pressed key inputs an ASCII alphabet or numeric with no modifier key, uses a keycode for it.</li>
  <li>If pressed key inputs an ASCII alphabet or numeric with Shift key, uses a keycode for it.</li>
  <li>If pressed key inputs another ASCII character with no modifier key, uses a keycode for it.</li>
  <li>If pressed key inputs another ASCII character with Shift key, users a keycode for it.</li>
  <li>Otherwise, i.e., pressed key inputs a Unicode character:
    <ol>
      <li>If the keyboard layout is ASCII capable keyboard layout (i.e., can input ASCII alphabets), uses 0.</li>
      <li>Otherwise, i.e., the keyboard layout isn't ASCII capable, using ASCII capable keyboard layout which is installed on the environment and has highest priority:
        <ol>
          <li>If pressed key on the alternative keyboard layout inputs an ASCII alphabet or numeric, uses a keycode for it.</li>
          <li>Otherwise, uses 0.</li>
        </ol>
      </li>
    </ol>
  </li>
</ol>
<div class="note">
  <strong>Note:</strong> Web developers shouldn't use keycode attribute of printable keys in keydown and keyup event handlers. As described above, keycode is not usable for checking character which will be inputted especially when Shift key or AltGr key is pressed. When web developers implement shortcut key handler, keypress event is better event for that purpose on Gecko at least. See <a href="/en-US/docs/Gecko_Keypress_Event" title="en-US/docs/Gecko_Keypress_Event">Gecko Keypress Event</a> for the detail.</div>
<table class="standard-table" style="width: auto;">
  <tbody>
    <tr>
      <td class="header">Constant</td>
      <td class="header">Value</td>
      <td class="header">Description</td>
    </tr>
    <tr>
      <td><code>DOM_VK_CANCEL</code></td>
      <td style="white-space: nowrap;">0x03 (3)</td>
      <td>Cancel key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_HELP</code></td>
      <td style="white-space: nowrap;">0x06 (6)</td>
      <td>Help key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_BACK_SPACE</code></td>
      <td style="white-space: nowrap;">0x08 (8)</td>
      <td>Backspace key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_TAB</code></td>
      <td style="white-space: nowrap;">0x09 (9)</td>
      <td>Tab key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_CLEAR</code></td>
      <td style="white-space: nowrap;">0x0C (12)</td>
      <td>"5" key on Numpad when NumLock is unlocked. Or on Mac, clear key which is positioned at NumLock key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_RETURN</code></td>
      <td style="white-space: nowrap;">0x0D (13)</td>
      <td>Return/enter key on the main keyboard.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_ENTER</code></td>
      <td style="white-space: nowrap;">0x0E (14)</td>
      <td>Reserved, but not used.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_SHIFT</code></td>
      <td style="white-space: nowrap;">0x10 (16)</td>
      <td>Shift key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_CONTROL</code></td>
      <td style="white-space: nowrap;">0x11 (17)</td>
      <td>Control key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_ALT</code></td>
      <td style="white-space: nowrap;">0x12 (18)</td>
      <td>Alt (Option on Mac) key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_PAUSE</code></td>
      <td style="white-space: nowrap;">0x13 (19)</td>
      <td>Pause key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_CAPS_LOCK</code></td>
      <td style="white-space: nowrap;">0x14 (20)</td>
      <td>Caps lock.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_KANA</code></td>
      <td style="white-space: nowrap;">0x15 (21)</td>
      <td>Linux support for this keycode was added in Gecko 4.0.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_HANGUL</code></td>
      <td style="white-space: nowrap;">0x15 (21)</td>
      <td>Linux support for this keycode was added in Gecko 4.0.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_EISU</code></td>
      <td style="white-space: nowrap;">0x 16 (22)</td>
      <td>"英数" key on Japanese Mac keyboard. {{gecko_minversion_inline("15.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_JUNJA</code></td>
      <td style="white-space: nowrap;">0x17 (23)</td>
      <td>Linux support for this keycode was added in Gecko 4.0.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_FINAL</code></td>
      <td style="white-space: nowrap;">0x18 (24)</td>
      <td>Linux support for this keycode was added in Gecko 4.0.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_HANJA</code></td>
      <td style="white-space: nowrap;">0x19 (25)</td>
      <td>Linux support for this keycode was added in Gecko 4.0.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_KANJI</code></td>
      <td style="white-space: nowrap;">0x19 (25)</td>
      <td>Linux support for this keycode was added in Gecko 4.0.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_ESCAPE</code></td>
      <td style="white-space: nowrap;">0x1B (27)</td>
      <td>Escape key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_CONVERT</code></td>
      <td style="white-space: nowrap;">0x1C (28)</td>
      <td>Linux support for this keycode was added in Gecko 4.0.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_NONCONVERT</code></td>
      <td style="white-space: nowrap;">0x1D (29)</td>
      <td>Linux support for this keycode was added in Gecko 4.0.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_ACCEPT</code></td>
      <td style="white-space: nowrap;">0x1E (30)</td>
      <td>Linux support for this keycode was added in Gecko 4.0.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_MODECHANGE</code></td>
      <td style="white-space: nowrap;">0x1F (31)</td>
      <td>Linux support for this keycode was added in Gecko 4.0.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_SPACE</code></td>
      <td style="white-space: nowrap;">0x20 (32)</td>
      <td>Space bar.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_PAGE_UP</code></td>
      <td style="white-space: nowrap;">0x21 (33)</td>
      <td>Page Up key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_PAGE_DOWN</code></td>
      <td style="white-space: nowrap;">0x22 (34)</td>
      <td>Page Down key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_END</code></td>
      <td style="white-space: nowrap;">0x23 (35)</td>
      <td>End key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_HOME</code></td>
      <td style="white-space: nowrap;">0x24 (36)</td>
      <td>Home key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_LEFT</code></td>
      <td style="white-space: nowrap;">0x25 (37)</td>
      <td>Left arrow.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_UP</code></td>
      <td style="white-space: nowrap;">0x26 (38)</td>
      <td>Up arrow.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_RIGHT</code></td>
      <td style="white-space: nowrap;">0x27 (39)</td>
      <td>Right arrow.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_DOWN</code></td>
      <td style="white-space: nowrap;">0x28 (40)</td>
      <td>Down arrow.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_SELECT</code></td>
      <td style="white-space: nowrap;">0x29 (41)</td>
      <td>Linux support for this keycode was added in Gecko 4.0.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_PRINT</code></td>
      <td style="white-space: nowrap;">0x2A (42)</td>
      <td>Linux support for this keycode was added in Gecko 4.0.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_EXECUTE</code></td>
      <td style="white-space: nowrap;">0x2B (43)</td>
      <td>Linux support for this keycode was added in Gecko 4.0.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_PRINTSCREEN</code></td>
      <td style="white-space: nowrap;">0x2C (44)</td>
      <td>Print Screen key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_INSERT</code></td>
      <td style="white-space: nowrap;">0x2D (45)</td>
      <td>Ins(ert) key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_DELETE</code></td>
      <td style="white-space: nowrap;">0x2E (46)</td>
      <td>Del(ete) key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_0</code></td>
      <td style="white-space: nowrap;">0x30 (48)</td>
      <td>"0" key in standard key location.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_1</code></td>
      <td style="white-space: nowrap;">0x31 (49)</td>
      <td>"1" key in standard key location.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_2</code></td>
      <td style="white-space: nowrap;">0x32 (50)</td>
      <td>"2" key in standard key location.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_3</code></td>
      <td style="white-space: nowrap;">0x33 (51)</td>
      <td>"3" key in standard key location.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_4</code></td>
      <td style="white-space: nowrap;">0x34 (52)</td>
      <td>"4" key in standard key location.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_5</code></td>
      <td style="white-space: nowrap;">0x35 (53)</td>
      <td>"5" key in standard key location.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_6</code></td>
      <td style="white-space: nowrap;">0x36 (54)</td>
      <td>"6" key in standard key location.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_7</code></td>
      <td style="white-space: nowrap;">0x37 (55)</td>
      <td>"7" key in standard key location.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_8</code></td>
      <td style="white-space: nowrap;">0x38 (56)</td>
      <td>"8" key in standard key location.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_9</code></td>
      <td style="white-space: nowrap;">0x39 (57)</td>
      <td>"9" key in standard key location.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_COLON</code></td>
      <td style="white-space: nowrap;">0x3A (58)</td>
      <td>Colon (":") key. {{gecko_minversion_inline("15.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_SEMICOLON</code></td>
      <td style="white-space: nowrap;">0x3B (59)</td>
      <td>Semicolon (";") key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_LESS_THAN</code></td>
      <td style="white-space: nowrap;">0x3C (60)</td>
      <td>Less-than ("&lt;") key. {{gecko_minversion_inline("15.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_EQUALS</code></td>
      <td style="white-space: nowrap;">0x3D (61)</td>
      <td>Equals ("=") key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_GREATER_THAN</code></td>
      <td style="white-space: nowrap;">0x3E (62)</td>
      <td>Greater-than ("&gt;") key. {{gecko_minversion_inline("15.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_QUESTION_MARK</code></td>
      <td style="white-space: nowrap;">0x3F (63)</td>
      <td>Question mark ("?") key. {{gecko_minversion_inline("15.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_AT</code></td>
      <td style="white-space: nowrap;">0x40 (64)</td>
      <td>Atmark ("@") key. {{gecko_minversion_inline("15.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_A</code></td>
      <td style="white-space: nowrap;">0x41 (65)</td>
      <td>"A" key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_B</code></td>
      <td style="white-space: nowrap;">0x42 (66)</td>
      <td>"B" key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_C</code></td>
      <td style="white-space: nowrap;">0x43 (67)</td>
      <td>"C" key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_D</code></td>
      <td style="white-space: nowrap;">0x44 (68)</td>
      <td>"D" key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_E</code></td>
      <td style="white-space: nowrap;">0x45 (69)</td>
      <td>"E" key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_F</code></td>
      <td style="white-space: nowrap;">0x46 (70)</td>
      <td>"F" key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_G</code></td>
      <td style="white-space: nowrap;">0x47 (71)</td>
      <td>"G" key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_H</code></td>
      <td style="white-space: nowrap;">0x48 (72)</td>
      <td>"H" key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_I</code></td>
      <td style="white-space: nowrap;">0x49 (73)</td>
      <td>"I" key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_J</code></td>
      <td style="white-space: nowrap;">0x4A (74)</td>
      <td>"J" key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_K</code></td>
      <td style="white-space: nowrap;">0x4B (75)</td>
      <td>"K" key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_L</code></td>
      <td style="white-space: nowrap;">0x4C (76)</td>
      <td>"L" key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_M</code></td>
      <td style="white-space: nowrap;">0x4D (77)</td>
      <td>"M" key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_N</code></td>
      <td style="white-space: nowrap;">0x4E (78)</td>
      <td>"N" key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_O</code></td>
      <td style="white-space: nowrap;">0x4F (79)</td>
      <td>"O" key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_P</code></td>
      <td style="white-space: nowrap;">0x50 (80)</td>
      <td>"P" key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_Q</code></td>
      <td style="white-space: nowrap;">0x51 (81)</td>
      <td>"Q" key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_R</code></td>
      <td style="white-space: nowrap;">0x52 (82)</td>
      <td>"R" key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_S</code></td>
      <td style="white-space: nowrap;">0x53 (83)</td>
      <td>"S" key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_T</code></td>
      <td style="white-space: nowrap;">0x54 (84)</td>
      <td>"T" key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_U</code></td>
      <td style="white-space: nowrap;">0x55 (85)</td>
      <td>"U" key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_V</code></td>
      <td style="white-space: nowrap;">0x56 (86)</td>
      <td>"V" key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_W</code></td>
      <td style="white-space: nowrap;">0x57 (87)</td>
      <td>"W" key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_X</code></td>
      <td style="white-space: nowrap;">0x58 (88)</td>
      <td>"X" key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_Y</code></td>
      <td style="white-space: nowrap;">0x59 (89)</td>
      <td>"Y" key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_Z</code></td>
      <td style="white-space: nowrap;">0x5A (90)</td>
      <td>"Z" key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_WIN</code></td>
      <td style="white-space: nowrap;">0x5B (91)</td>
      <td>Windows logo key on Windows. Or Super or Hyper key on Linux. {{gecko_minversion_inline("15.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_CONTEXT_MENU</code></td>
      <td style="white-space: nowrap;">0x5D (93)</td>
      <td>Opening context menu key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_SLEEP</code></td>
      <td style="white-space: nowrap;">0x5F (95)</td>
      <td>Linux support for this keycode was added in Gecko 4.0.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_NUMPAD0</code></td>
      <td style="white-space: nowrap;">0x60 (96)</td>
      <td>"0" on the numeric keypad.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_NUMPAD1</code></td>
      <td style="white-space: nowrap;">0x61 (97)</td>
      <td>"1" on the numeric keypad.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_NUMPAD2</code></td>
      <td style="white-space: nowrap;">0x62 (98)</td>
      <td>"2" on the numeric keypad.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_NUMPAD3</code></td>
      <td style="white-space: nowrap;">0x63 (99)</td>
      <td>"3" on the numeric keypad.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_NUMPAD4</code></td>
      <td style="white-space: nowrap;">0x64 (100)</td>
      <td>"4" on the numeric keypad.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_NUMPAD5</code></td>
      <td style="white-space: nowrap;">0x65 (101)</td>
      <td>"5" on the numeric keypad.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_NUMPAD6</code></td>
      <td style="white-space: nowrap;">0x66 (102)</td>
      <td>"6" on the numeric keypad.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_NUMPAD7</code></td>
      <td style="white-space: nowrap;">0x67 (103)</td>
      <td>"7" on the numeric keypad.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_NUMPAD8</code></td>
      <td style="white-space: nowrap;">0x68 (104)</td>
      <td>"8" on the numeric keypad.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_NUMPAD9</code></td>
      <td style="white-space: nowrap;">0x69 (105)</td>
      <td>"9" on the numeric keypad.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_MULTIPLY</code></td>
      <td style="white-space: nowrap;">0x6A (106)</td>
      <td>"*" on the numeric keypad.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_ADD</code></td>
      <td style="white-space: nowrap;">0x6B (107)</td>
      <td>"+" on the numeric keypad.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_SEPARATOR</code></td>
      <td style="white-space: nowrap;">0x6C (108)</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td><code>DOM_VK_SUBTRACT</code></td>
      <td style="white-space: nowrap;">0x6D (109)</td>
      <td>"-" on the numeric keypad.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_DECIMAL</code></td>
      <td style="white-space: nowrap;">0x6E (110)</td>
      <td>Decimal point on the numeric keypad.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_DIVIDE</code></td>
      <td style="white-space: nowrap;">0x6F (111)</td>
      <td>"/" on the numeric keypad.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_F1</code></td>
      <td style="white-space: nowrap;">0x70 (112)</td>
      <td>F1 key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_F2</code></td>
      <td style="white-space: nowrap;">0x71 (113)</td>
      <td>F2 key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_F3</code></td>
      <td style="white-space: nowrap;">0x72 (114)</td>
      <td>F3 key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_F4</code></td>
      <td style="white-space: nowrap;">0x73 (115)</td>
      <td>F4 key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_F5</code></td>
      <td style="white-space: nowrap;">0x74 (116)</td>
      <td>F5 key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_F6</code></td>
      <td style="white-space: nowrap;">0x75 (117)</td>
      <td>F6 key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_F7</code></td>
      <td style="white-space: nowrap;">0x76 (118)</td>
      <td>F7 key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_F8</code></td>
      <td style="white-space: nowrap;">0x77 (119)</td>
      <td>F8 key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_F9</code></td>
      <td style="white-space: nowrap;">0x78 (120)</td>
      <td>F9 key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_F10</code></td>
      <td style="white-space: nowrap;">0x79 (121)</td>
      <td>F10 key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_F11</code></td>
      <td style="white-space: nowrap;">0x7A (122)</td>
      <td>F11 key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_F12</code></td>
      <td style="white-space: nowrap;">0x7B (123)</td>
      <td>F12 key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_F13</code></td>
      <td style="white-space: nowrap;">0x7C (124)</td>
      <td>F13 key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_F14</code></td>
      <td style="white-space: nowrap;">0x7D (125)</td>
      <td>F14 key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_F15</code></td>
      <td style="white-space: nowrap;">0x7E (126)</td>
      <td>F15 key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_F16</code></td>
      <td style="white-space: nowrap;">0x7F (127)</td>
      <td>F16 key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_F17</code></td>
      <td style="white-space: nowrap;">0x80 (128)</td>
      <td>F17 key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_F18</code></td>
      <td style="white-space: nowrap;">0x81 (129)</td>
      <td>F18 key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_F19</code></td>
      <td style="white-space: nowrap;">0x82 (130)</td>
      <td>F19 key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_F20</code></td>
      <td style="white-space: nowrap;">0x83 (131)</td>
      <td>F20 key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_F21</code></td>
      <td style="white-space: nowrap;">0x84 (132)</td>
      <td>F21 key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_F22</code></td>
      <td style="white-space: nowrap;">0x85 (133)</td>
      <td>F22 key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_F23</code></td>
      <td style="white-space: nowrap;">0x86 (134)</td>
      <td>F23 key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_F24</code></td>
      <td style="white-space: nowrap;">0x87 (135)</td>
      <td>F24 key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_NUM_LOCK</code></td>
      <td style="white-space: nowrap;">0x90 (144)</td>
      <td>Num Lock key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_SCROLL_LOCK</code></td>
      <td style="white-space: nowrap;">0x91 (145)</td>
      <td>Scroll Lock key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_WIN_OEM_FJ_JISHO</code></td>
      <td style="white-space: nowrap;">0x92 (146)</td>
      <td>An <a href="#OEM_specific_keys_on_Windows" title="#OEM_specific_keys_on_Windows">OEM specific key on Windows</a>. This was used for "Dictionary" key on Fujitsu OASYS. {{gecko_minversion_inline("21.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_WIN_OEM_FJ_MASSHOU</code></td>
      <td style="white-space: nowrap;">0x93 (147)</td>
      <td>An <a href="#OEM_specific_keys_on_Windows" title="#OEM_specific_keys_on_Windows">OEM specific key on Windows</a>. This was used for "Unregister word" key on Fujitsu OASYS. {{gecko_minversion_inline("21.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_WIN_OEM_FJ_TOUROKU</code></td>
      <td style="white-space: nowrap;">0x94 (148)</td>
      <td>An <a href="#OEM_specific_keys_on_Windows" title="#OEM_specific_keys_on_Windows">OEM specific key on Windows</a>. This was used for "Register word" key on Fujitsu OASYS. {{gecko_minversion_inline("21.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_WIN_OEM_FJ_LOYA</code></td>
      <td style="white-space: nowrap;">0x95 (149)</td>
      <td>An <a href="#OEM_specific_keys_on_Windows" title="#OEM_specific_keys_on_Windows">OEM specific key on Windows</a>. This was used for "Left OYAYUBI" key on Fujitsu OASYS. {{gecko_minversion_inline("21.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_WIN_OEM_FJ_ROYA</code></td>
      <td style="white-space: nowrap;">0x96 (150)</td>
      <td>An <a href="#OEM_specific_keys_on_Windows" title="#OEM_specific_keys_on_Windows">OEM specific key on Windows</a>. This was used for "Right OYAYUBI" key on Fujitsu OASYS. {{gecko_minversion_inline("21.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_CIRCUMFLEX</code></td>
      <td style="white-space: nowrap;">0xA0 (160)</td>
      <td>Circumflex ("^") key. {{gecko_minversion_inline("15.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_EXCLAMATION</code></td>
      <td style="white-space: nowrap;">0xA1 (161)</td>
      <td>Exclamation ("!") key. {{gecko_minversion_inline("15.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_DOUBLE_QUOTE</code></td>
      <td style="white-space: nowrap;">0xA3 (162)</td>
      <td>Double quote (""") key. {{gecko_minversion_inline("15.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_HASH</code></td>
      <td style="white-space: nowrap;">0xA3 (163)</td>
      <td>Hash ("#") key. {{gecko_minversion_inline("15.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_DOLLAR</code></td>
      <td style="white-space: nowrap;">0xA4 (164)</td>
      <td>Dollar sign ("$") key. {{gecko_minversion_inline("15.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_PERCENT</code></td>
      <td style="white-space: nowrap;">0xA5 (165)</td>
      <td>Percent ("%") key. {{gecko_minversion_inline("15.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_AMPERSAND</code></td>
      <td style="white-space: nowrap;">0xA6 (166)</td>
      <td>Ampersand ("&amp;") key. {{gecko_minversion_inline("15.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_UNDERSCORE</code></td>
      <td style="white-space: nowrap;">0xA7 (167)</td>
      <td>Underscore ("_") key. {{gecko_minversion_inline("15.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_OPEN_PAREN</code></td>
      <td style="white-space: nowrap;">0xA8 (168)</td>
      <td>Open parenthesis ("(") key. {{gecko_minversion_inline("15.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_CLOSE_PAREN</code></td>
      <td style="white-space: nowrap;">0xA9 (169)</td>
      <td>Close parenthesis (")") key. {{gecko_minversion_inline("15.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_ASTERISK</code></td>
      <td style="white-space: nowrap;">0xAA (170)</td>
      <td>Asterisk ("*") key. {{gecko_minversion_inline("15.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_PLUS</code></td>
      <td style="white-space: nowrap;">0xAB (171)</td>
      <td>Plus ("+") key. {{gecko_minversion_inline("15.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_PIPE</code></td>
      <td style="white-space: nowrap;">0xAC (172)</td>
      <td>Pipe ("|") key. {{gecko_minversion_inline("15.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_HYPHEN_MINUS</code></td>
      <td style="white-space: nowrap;">0xAD (173)</td>
      <td>Hyphen-US/docs/Minus ("-") key. {{gecko_minversion_inline("15.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_OPEN_CURLY_BRACKET</code></td>
      <td style="white-space: nowrap;">0xAE (174)</td>
      <td>Open curly bracket ("{") key. {{gecko_minversion_inline("15.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_CLOSE_CURLY_BRACKET</code></td>
      <td style="white-space: nowrap;">0xAF (175)</td>
      <td>Close curly bracket ("}") key. {{gecko_minversion_inline("15.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_TILDE</code></td>
      <td style="white-space: nowrap;">0xB0 (176)</td>
      <td>Tilde ("~") key. {{gecko_minversion_inline("15.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_VOLUME_MUTE</code></td>
      <td style="white-space: nowrap;">0xB5 (181)</td>
      <td>Audio mute key. {{gecko_minversion_inline("21.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_VOLUME_DOWN</code></td>
      <td style="white-space: nowrap;">0xB6 (182)</td>
      <td>Audio volume down key {{gecko_minversion_inline("21.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_VOLUME_UP</code></td>
      <td style="white-space: nowrap;">0xB7 (183)</td>
      <td>Audio volume up key {{gecko_minversion_inline("21.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_COMMA</code></td>
      <td style="white-space: nowrap;">0xBC (188)</td>
      <td>Comma (",") key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_PERIOD</code></td>
      <td style="white-space: nowrap;">0xBE (190)</td>
      <td>Period (".") key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_SLASH</code></td>
      <td style="white-space: nowrap;">0xBF (191)</td>
      <td>Slash ("/") key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_BACK_QUOTE</code></td>
      <td style="white-space: nowrap;">0xC0 (192)</td>
      <td>Back tick ("`") key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_OPEN_BRACKET</code></td>
      <td style="white-space: nowrap;">0xDB (219)</td>
      <td>Open square bracket ("[") key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_BACK_SLASH</code></td>
      <td style="white-space: nowrap;">0xDC (220)</td>
      <td>Back slash ("\") key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_CLOSE_BRACKET</code></td>
      <td style="white-space: nowrap;">0xDD (221)</td>
      <td>Close square bracket ("]") key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_QUOTE</code></td>
      <td style="white-space: nowrap;">0xDE (222)</td>
      <td>Quote (''') key.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_META</code></td>
      <td style="white-space: nowrap;">0xE0 (224)</td>
      <td>Meta key on Linux, Command key on Mac.</td>
    </tr>
    <tr>
      <td><code>DOM_VK_ALTGR</code></td>
      <td style="white-space: nowrap;">0xE1 (225)</td>
      <td>AltGr key (Level 3 Shift key or Level 5 Shift key) on Linux. {{gecko_minversion_inline("15.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_WIN_ICO_HELP</code></td>
      <td style="white-space: nowrap;">0xE3 (227)</td>
      <td>An <a href="#OEM_specific_keys_on_Windows" title="#OEM_specific_keys_on_Windows">OEM specific key on Windows</a>. This is (was?) used for Olivetti ICO keyboard.{{gecko_minversion_inline("21.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_WIN_ICO_00</code></td>
      <td style="white-space: nowrap;">0xE4 (228)</td>
      <td>An <a href="#OEM_specific_keys_on_Windows" title="#OEM_specific_keys_on_Windows">OEM specific key on Windows</a>. This is (was?) used for Olivetti ICO keyboard.{{gecko_minversion_inline("21.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_WIN_ICO_CLEAR</code></td>
      <td style="white-space: nowrap;">0xE6 (230)</td>
      <td>An <a href="#OEM_specific_keys_on_Windows" title="#OEM_specific_keys_on_Windows">OEM specific key on Windows</a>. This is (was?) used for Olivetti ICO keyboard.{{gecko_minversion_inline("21.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_WIN_OEM_RESET</code></td>
      <td style="white-space: nowrap;">0xE9 (233)</td>
      <td>An <a href="#OEM_specific_keys_on_Windows" title="#OEM_specific_keys_on_Windows">OEM specific key on Windows</a>. This was used for Nokia/Ericsson's device.{{gecko_minversion_inline("21.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_WIN_OEM_JUMP</code></td>
      <td style="white-space: nowrap;">0xEA (234)</td>
      <td>An <a href="#OEM_specific_keys_on_Windows" title="#OEM_specific_keys_on_Windows">OEM specific key on Windows</a>. This was used for Nokia/Ericsson's device.{{gecko_minversion_inline("21.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_WIN_OEM_PA1</code></td>
      <td style="white-space: nowrap;">0xEB (235)</td>
      <td>An <a href="#OEM_specific_keys_on_Windows" title="#OEM_specific_keys_on_Windows">OEM specific key on Windows</a>. This was used for Nokia/Ericsson's device.{{gecko_minversion_inline("21.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_WIN_OEM_PA2</code></td>
      <td style="white-space: nowrap;">0xEC (236)</td>
      <td>An <a href="#OEM_specific_keys_on_Windows" title="#OEM_specific_keys_on_Windows">OEM specific key on Windows</a>. This was used for Nokia/Ericsson's device.{{gecko_minversion_inline("21.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_WIN_OEM_PA3</code></td>
      <td style="white-space: nowrap;">0xED (237)</td>
      <td>An <a href="#OEM_specific_keys_on_Windows" title="#OEM_specific_keys_on_Windows">OEM specific key on Windows</a>. This was used for Nokia/Ericsson's device.{{gecko_minversion_inline("21.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_WIN_OEM_WSCTRL</code></td>
      <td style="white-space: nowrap;">0xEE (238)</td>
      <td>An <a href="#OEM_specific_keys_on_Windows" title="#OEM_specific_keys_on_Windows">OEM specific key on Windows</a>. This was used for Nokia/Ericsson's device.{{gecko_minversion_inline("21.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_WIN_OEM_CUSEL</code></td>
      <td style="white-space: nowrap;">0xEF (239)</td>
      <td>An <a href="#OEM_specific_keys_on_Windows" title="#OEM_specific_keys_on_Windows">OEM specific key on Windows</a>. This was used for Nokia/Ericsson's device.{{gecko_minversion_inline("21.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_WIN_OEM_ATTN</code></td>
      <td style="white-space: nowrap;">0xF0 (240)</td>
      <td>An <a href="#OEM_specific_keys_on_Windows" title="#OEM_specific_keys_on_Windows">OEM specific key on Windows</a>. This was used for Nokia/Ericsson's device.{{gecko_minversion_inline("21.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_WIN_OEM_FINISH</code></td>
      <td style="white-space: nowrap;">0xF1 (241)</td>
      <td>An <a href="#OEM_specific_keys_on_Windows" title="#OEM_specific_keys_on_Windows">OEM specific key on Windows</a>. This was used for Nokia/Ericsson's device.{{gecko_minversion_inline("21.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_WIN_OEM_COPY</code></td>
      <td style="white-space: nowrap;">0xF2 (242)</td>
      <td>An <a href="#OEM_specific_keys_on_Windows" title="#OEM_specific_keys_on_Windows">OEM specific key on Windows</a>. This was used for Nokia/Ericsson's device.{{gecko_minversion_inline("21.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_WIN_OEM_AUTO</code></td>
      <td style="white-space: nowrap;">0xF3 (243)</td>
      <td>An <a href="#OEM_specific_keys_on_Windows" title="#OEM_specific_keys_on_Windows">OEM specific key on Windows</a>. This was used for Nokia/Ericsson's device.{{gecko_minversion_inline("21.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_WIN_OEM_ENLW</code></td>
      <td style="white-space: nowrap;">0xF4 (244)</td>
      <td>An <a href="#OEM_specific_keys_on_Windows" title="#OEM_specific_keys_on_Windows">OEM specific key on Windows</a>. This was used for Nokia/Ericsson's device.{{gecko_minversion_inline("21.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_WIN_OEM_BACKTAB</code></td>
      <td style="white-space: nowrap;">0xF5 (245)</td>
      <td>An <a href="#OEM_specific_keys_on_Windows" title="#OEM_specific_keys_on_Windows">OEM specific key on Windows</a>. This was used for Nokia/Ericsson's device.{{gecko_minversion_inline("21.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_ATTN</code></td>
      <td style="white-space: nowrap;">0xF6 (246)</td>
      <td>Attn (Attension) key of IBM midrange computers, e.g., AS/400. {{gecko_minversion_inline("21.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_CRSEL</code></td>
      <td style="white-space: nowrap;">0xF7 (247)</td>
      <td>CrSel (Cursor Selection) key of IBM 3270 keyboard layout. {{gecko_minversion_inline("21.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_EXSEL</code></td>
      <td style="white-space: nowrap;">0xF8 (248)</td>
      <td>ExSel (Extend Selection) key of IBM 3270 keyboard layout. {{gecko_minversion_inline("21.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_EREOF</code></td>
      <td style="white-space: nowrap;">0xF9 (249)</td>
      <td>Erase EOF key of IBM 3270 keyboard layout. {{gecko_minversion_inline("21.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_PLAY</code></td>
      <td style="white-space: nowrap;">0xFA (250)</td>
      <td>Play key of IBM 3270 keyboard layout. {{gecko_minversion_inline("21.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_ZOOM</code></td>
      <td style="white-space: nowrap;">0xFB (251)</td>
      <td>Zoom key. {{gecko_minversion_inline("21.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_PA1</code></td>
      <td style="white-space: nowrap;">0xFD (253)</td>
      <td>PA1 key of IBM 3270 keyboard layout. {{gecko_minversion_inline("21.0")}}</td>
    </tr>
    <tr>
      <td><code>DOM_VK_WIN_OEM_CLEAR</code></td>
      <td style="white-space: nowrap;">0xFE (254)</td>
      <td>Clear key, but we're not sure the meaning difference from <code>DOM_VK_CLEAR</code>. {{gecko_minversion_inline("21.0")}}</td>
    </tr>
  </tbody>
</table>
<h4 id="OEM_specific_keys_on_Windows">OEM specific keys on Windows</h4>
<p>On Windows, some values of virtual keycode are defined (reserved) for OEM specific key. They are available for special keys on non-standard keyboard. In other words, some values are used for different meaning by two or more venders (or hardware).</p>
<p>Starting Gecko 21 (and older than 15), OEM specific key values are available on the keyCode attribute only on Windows. So,&nbsp; they are not useful for usual web applications. They are useful only for intranet applications or in similar situations.</p>
<p>See "<a href="http://msdn.microsoft.com/en-us/library/aa452679.aspx" title="http://msdn.microsoft.com/en-us/library/aa452679.aspx">Manufacturer-specific Virtual-Key Codes (Windows CE 5.0)</a>" in MSDN for the detail.</p>
<h3 id="Key_location_constants">Key location constants</h3>
<p>These constants describe the <code>location</code> on the keyboard of key events. {{dom_level("3")}} {{gecko_minversion_inline("15.0")}}</p>
<table class="standard-table">
  <tbody>
    <tr>
      <td class="header">Constant</td>
      <td class="header">Value</td>
      <td class="header">Description</td>
    </tr>
    <tr>
      <td><code>DOM_KEY_LOCATION_STANDARD</code></td>
      <td>0</td>
      <td>The key must not be distinguished between the left and right versions of the key, and was not pressed on the numeric keypad or a key that is considered to be part of the keypad.</td>
    </tr>
    <tr>
      <td><code>DOM_KEY_LOCATION_LEFT</code></td>
      <td>1</td>
      <td>The key was the left-hand version of the key; for example, this is the value of the <code>location</code> attribute when the left-hand Control key is pressed on a standard 101 key US keyboard. This value is only used for keys that have more that one possible location on the keyboard.</td>
    </tr>
    <tr>
      <td><code>DOM_KEY_LOCATION_RIGHT</code></td>
      <td>2</td>
      <td>The key was the right-hand version of the key; for example, this is the value of the <code>location</code> attribute when the right-hand Control key is pressed on a standard 101 key US keyboard. This value is only used for keys that have more that one possible location on the keyboard.</td>
    </tr>
    <tr>
      <td><code>DOM_KEY_LOCATION_NUMPAD</code></td>
      <td>3</td>
      <td>
        <p>The key was on the numeric keypad, or has a virtual key code that corresponds to the numeric keypad.</p>
        <div class="note">
          <strong>Note:</strong> When NumLock is locked, Gecko always returns <code>DOM_KEY_LOCATION_NUMPAD</code> for the keys on NumPad. Otherwise, when NumLock is unlocked and the keyboard actually has a numeric keypad, Gecko always returns <code>DOM_KEY_LOCATION_NUMPAD</code> too. On the other hand, if the keyboard doesn't have a keypad, such as on a notebook computer, some keys become Numpad only when NumLock is locked. When such keys fires key events, the location attribute value depends on the key. That is, it must not be <code>DOM_KEY_LOCATION_NUMPAD</code>.</div>
        <div class="note">
          <strong>Note:</strong> NumLock key's key events indicate <code>DOM_KEY_LOCATION_STANDARD</code> both on Gecko and Internet Explorer.</div>
      </td>
    </tr>
    <tr>
      <td><code>DOM_KEY_LOCATION_MOBILE</code></td>
      <td>4</td>
      <td>
        <p>The key was on a mobile device; this can be on either a physical keypad or a virtual keyboard.</p>
        <div class="note">
          <strong>Note: </strong>Gecko always returns <code>DOM_KEY_LOCATION_MOBILE</code> on Android (Prior to 18), Maemo, and <a href="/en-US/docs/Mozilla/Boot_to_Gecko" title="Boot to Gecko">Boot to Gecko</a>.</div>
      </td>
    </tr>
    <tr>
      <td><code>DOM_KEY_LOCATION_JOYSTICK</code></td>
      <td>5</td>
      <td>
        <p>The key was a button on a game controller or a joystick on a mobile device.</p>
        <div class="note">
          <strong>Note: </strong>Gecko never fires trusted key events with <code>DOM_KEY_LOCATION_JOYSTICK</code> except on Android. Starting 18, native key events on Android may have this value. {{gecko_minversion_inline("18.0")}}</div>
      </td>
    </tr>
  </tbody>
</table>
<h2 id="Methods">Methods</h2>
<h3 id="getModifierState()">getModifierState()</h3>
<p>Returns the current state of the specified modifier key. {{dom_level("3")}} {{gecko_minversion_inline("15.0")}}</p>
<pre>
boolean getModifierState(
  in DOMString keyArg
);
</pre>
<h6 id="Parameters">Parameters</h6>
<dl>
  <dt>
    <code>keyArg</code></dt>
  <dd>
    A string identifying the modifier key whose value you wish to determine. This may be an implementation-defined value or one of: "Alt", "AltGraph", "CapsLock", "Control", "Fn", "Meta", "NumLock", "ScrollLock", "Shift", "SymbolLock", or "OS". Note that IE9 uses "Scroll" for "ScrollLock" and "Win" for "OS". If you use these older draft's name, Gecko's <code>getModifierState()</code> always returns <code>false</code>.</dd>
</dl>
<h6 id="Return_value">Return value</h6>
<p><code>true</code> if the specified modifier key is engaged; otherwise <code>false</code>.</p>
<div class="note">
  <table border="1" cellpadding="1" cellspacing="1" style="width:100%;">
    <caption>
      When getModifierState() returns true on Gecko?</caption>
    <thead>
      <tr>
        <th scope="row">&nbsp;</th>
        <th scope="col">Windows</th>
        <th scope="col">Linux (GTK)</th>
        <th scope="col">Mac</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <th scope="row">"Alt"</th>
        <td>Either Alt key or AltGr key pressed</td>
        <td>Alt key pressed</td>
        <td>option key pressed</td>
      </tr>
      <tr>
        <th scope="row">"AltGraph"</th>
        <td>
          <p>Both Alt and Ctrl keys are pressed, or AltGr key is pressed</p>
        </td>
        <td>Level 3 Shift key (or Level 5 Shift key {{gecko_minversion_inline("20.0")}}) pressed</td>
        <td>option key pressed</td>
      </tr>
      <tr>
        <th scope="row">"CapsLock"</th>
        <td colspan="3" style="text-align:center;">During LED for Caps Lock turned on</td>
      </tr>
      <tr>
        <th scope="row">"Control"</th>
        <td>Either Ctrl key or AltGr key pressed</td>
        <td>Ctrl key pressed</td>
        <td>control key pressed</td>
      </tr>
      <tr>
        <th scope="row">"Fn"</th>
        <td colspan="3" style="background-color: rgb(211,211,211); text-align:center;"><em>Not supported</em></td>
      </tr>
      <tr>
        <th scope="row">"Meta"</th>
        <td style="background-color: rgb(211,211,211); text-align:center;"><em>Not supported</em></td>
        <td style="text-align: center;">Meta key pressed {{gecko_minversion_inline("17.0")}}</td>
        <td>command key pressed</td>
      </tr>
      <tr>
        <th scope="row">"NumLock"</th>
        <td colspan="2" style="text-align:center;">During LED for Num Lock turned on</td>
        <td>A key on numpad pressed</td>
      </tr>
      <tr>
        <th scope="row">"ScrollLock"</th>
        <td>During LED for Scroll Lock turned on</td>
        <td>During LED for Scroll Lock turned on, but typically this isn't supported by platform</td>
        <td style="background-color:#d3d3d3;"><em>Not supported</em></td>
      </tr>
      <tr>
        <th scope="row">"Shift"</th>
        <td colspan="3" rowspan="1" style="text-align:center;">Shift key pressed</td>
      </tr>
      <tr>
        <th scope="row">"SymbolLock"</th>
        <td colspan="3" style="background-color: rgb(211,211,211); text-align:center;"><em>Not supported</em></td>
      </tr>
      <tr>
        <th scope="row">"OS"</th>
        <td>Windows Logo key pressed</td>
        <td>Super key or Hyper key pressed (typically, mapped to Windows Logo key)</td>
        <td style="background-color:#d3d3d3;"><em>Not supported</em></td>
      </tr>
    </tbody>
  </table>
  <p>On the other platforms, "Alt", "Control" and "Shift" may be supported.</p>
  <p>All modifiers are always supported for untrusted events on Gecko. This doesn't depend on the platform.</p>
</div>
<h3 id="initKeyboardEvent()">initKeyboardEvent()</h3>
<p>{{deprecated_header()}}</p>
<p>Initializes the attributes of a keyboard event object. This method was introduced in draft of DOM Level 3 Events, but deprecated in newer draft. Gecko doesn't implement this method but there is similar one, see <a href="/en-US/docs/DOM/event.initKeyEvent" title="en-US/docs/DOM/event.initKeyEvent">initKeyEvent()</a>.</p>
<pre>
void initKeyboardEvent(
  in DOMString typeArg,
  in boolean canBubbleArg,
  in boolean cancelableArg,
  in views::AbstractView viewArg,
  in DOMString charArg,
  in DOMString keyArg,
  in unsigned long locationArg,
  in DOMString modifiersListArg,
  in boolean repeat,
  in DOMString localeArg
);
</pre>
<h6 id="Parameters">Parameters</h6>
<dl>
  <dt>
    <code>typeArg</code></dt>
  <dd>
    The type of keyboard event; this will be one of {{domevent('keydown')}}, {{domevent('keypress')}}, or {{domevent('keyup')}}.</dd>
  <dt>
    <code>canBubbleArg</code></dt>
  <dd>
    Whether or not the event can bubble.</dd>
  <dt>
    <code>cancelableArg</code></dt>
  <dd>
    Whether or not the event can be canceled.</dd>
  <dt>
    <code>viewArg</code></dt>
  <dd>
    ?</dd>
  <dt>
    <code>charArg</code></dt>
  <dd>
    The value of the char attribute.</dd>
  <dt>
    <code>keyArg</code></dt>
  <dd>
    The value of the key attribute.</dd>
  <dt>
    <code>locationArg</code></dt>
  <dd>
    The value of the location attribute.</dd>
  <dt>
    <code>modifiersListArg</code></dt>
  <dd>
    A whitespace-delineated list of modifier keys that should be considered to be active on the event's key. For example, specifying "Control Shift" indicates that the user was holding down the Control and Shift keys when pressing the key described by the event.</dd>
  <dt>
    <code>repeatArg</code></dt>
  <dd>
    The value of the repeat attribute.</dd>
  <dt>
    <code>localeArg</code></dt>
  <dd>
    The value of the locale attribute.</dd>
</dl>
<h2 id="Processing_of_key_events">Processing of key events</h2>
<p>There are <code>keydown</code>, <code>keypress</code>, and <code>keyup</code> events. For most keys, Gecko dispatches a sequence of key events like this:</p>
<ol>
  <li>When the key is first depressed, the <code>keydown</code> event is sent.</li>
  <li>If the key is not a modifier key, the <code>keypress</code> event is sent.</li>
  <li>When the user releases the key, the <code>keyup</code> event is sent.</li>
</ol>
<h3 id="Special_cases">Special cases</h3>
<p>Certain keys toggle the state of an LED indicator, such as Caps Lock, Num Lock, and Scroll Lock. On Windows and Linux, these keys dispatch only the <code>keydown</code> and <code>keyup</code> events. Note that on Linux, Firefox 12 and earlier also dispatched the <code>keypress</code> event for these keys.</p>
<p>On Mac, however, Caps Lock dispatches only the <code>keydown</code> event due to a platform event model limitation. Num Lock had been supported on old MacBook (2007 model and older) but Mac hasn't supported Num Lock feature even on external keyboards in these days. On the old MacBook which has Num Lock key, Num Lock doesn't cause any key events. And Gecko supports Scroll Lock key if an external keyboard which has F14 is connected. However, it generates <code>keypress</code> event. This inconsistent behavior is a bug; see {{bug(602812)}}.</p>
<h3 id="Auto-repeat_handling">Auto-repeat handling</h3>
<p>When a key is pressed and held down, it begins to auto-repeat. This results in a sequence of events similar to the following being dispatched:</p>
<ol>
  <li><code>keydown</code></li>
  <li><code>keypress</code></li>
  <li><code>keydown</code></li>
  <li><code>keypress</code></li>
  <li>&lt;&lt;repeating until the user releases the key&gt;&gt;</li>
  <li><code>keyup</code></li>
</ol>
<p>This is what the DOM Level 3 specification says should happen. There are some caveats, however, as described below.</p>
<h4 id="Auto-repeat_on_some_GTK_environments_such_as_Ubuntu_9.4">Auto-repeat on some GTK environments such as Ubuntu 9.4</h4>
<p>In some GTK-based environments, auto-repeat dispatches a native key-up event automatically during auto-repeat, and there's no way for Gecko to know the difference between a repeated series of keypresses and an auto-repeat. On those platforms, then, an auto-repeat key will generate the following sequence of events:</p>
<ol>
  <li><code>keydown</code></li>
  <li><code>keypress</code></li>
  <li><code>keyup</code></li>
  <li><code>keydown</code></li>
  <li><code>keypress</code></li>
  <li><code>keyup</code></li>
  <li>&lt;&lt;repeating until the user releases the key&gt;&gt;</li>
  <li><code>keyup</code></li>
</ol>
<p>In these environments, unfortunately, there's no way for web content to tell the difference between auto-repeating keys and keys that are just being pressed repeatedly.</p>
<h4 id="Auto-repeat_handling_prior_to_Gecko_4.0">Auto-repeat handling prior to Gecko 4.0</h4>
<p>Before Gecko 4.0 {{geckoRelease('4.0')}}, keyboard handling was less consistent across platforms.</p>
<dl>
  <dt>
    Windows</dt>
  <dd>
    Auto-repeat behavior is the same as in Gecko 4.0 and later.</dd>
  <dt>
    Mac</dt>
  <dd>
    After the initial keydown event, only keypress events are sent until the keyup event occurs; the inter-spaced keydown events are not sent.</dd>
  <dt>
    Linux</dt>
  <dd>
    The event behavior depends on the specific platform. It will either behave like Windows or Mac depending on what the native event model does.</dd>
</dl>
<h2 id="Key_names_and_Char_values">Key names and Char values</h2>
<p>Following tables show what key and char values are used for each native virtual keycode. The information for Gecko is currently planned in {{ bug(680830) }}.</p>
<table class="standard-table" id="keyname_table_win">
  <caption>
    key names and char values on Windows</caption>
  <thead>
    <tr>
      <th scope="row"><a class="external" href="http://msdn.microsoft.com/en-us/library/dd375731%28v=VS.85%29.aspx" title="http://msdn.microsoft.com/en-us/library/dd375731%28v=VS.85%29.aspx">Virtual-Key Codes</a></th>
      <th colspan="2" rowspan="1" scope="col">IE 9</th>
      <th colspan="2" rowspan="1" scope="col">Gecko (plan)</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <th scope="row"><code>VK_LBUTTON (0x01)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>null</code></td>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_RBUTTON (0x02)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>null</code></td>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_CANCEL (0x03)</code></th>
      <td style="background-color: rgb(255, 255, 204);"><code>""</code></td>
      <td style="background-color: rgb(255, 255, 204);"><code>U+0003</code></td>
      <td style="background-color: rgb(255, 255, 204);"><code>"Cancel"</code></td>
      <td style="background-color: rgb(255, 255, 204);"><code>U+0018</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_MBUTTON (0x04)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>null</code></td>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_XBUTTON1 (0x05)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>null</code></td>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_XBUTTON2 (0x06)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>null</code></td>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_BACK (0x08)</code></th>
      <td><code>"Backspace"</code></td>
      <td><code>U+0008</code></td>
      <td><code>"Backspace"</code></td>
      <td><code>U+0008</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_TAB (0x09)</code></th>
      <td><code>"Tab"</code></td>
      <td><code>U+0009</code></td>
      <td><code>"Tab"</code></td>
      <td><code>U+0009</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_CLEAR (0x0C)</code></th>
      <td><code>"Clear"</code></td>
      <td><code>null</code></td>
      <td><code>"Clear"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_RETURN (0x0D)</code></th>
      <td><code>"Enter"</code></td>
      <td style="background-color: rgb(255, 255, 204);"><code>U+000A</code> for <code>keydown</code>,<br />
        <code>U+000D</code> for <code>keypress</code></td>
      <td><code>"Enter"</code></td>
      <td style="background-color: rgb(255, 255, 204);"><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_SHIFT (0x10)</code></th>
      <td><code>"Shift"</code></td>
      <td><code>null</code></td>
      <td><code>"Shift"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_CONTROL (0x11)</code></th>
      <td><code>"Control"</code></td>
      <td><code>null</code></td>
      <td><code>"Control"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_MENU (0x12)</code></th>
      <td><code>"Alt"</code></td>
      <td><code>null</code></td>
      <td><code>"Alt"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_PAUSE (0x13)</code></th>
      <td><code>"Pause"</code></td>
      <td><code>null</code></td>
      <td><code>"Pause"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_CAPITAL (0x14)</code></th>
      <td><code>"CapsLock"</code></td>
      <td><code>null</code></td>
      <td><code>"CapsLock"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_KANA,<br />
        VK_HANGUEL,<br />
        VK_HANGUL (0x15)</code></th>
      <td><code>"KanaMode"</code></td>
      <td><code>null</code></td>
      <td><code>"KanaMode"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_JUNJA (0x17)</code></th>
      <td><code>"JunjaMode"</code></td>
      <td><code>null</code></td>
      <td><code>"JunjaMode"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_FINAL (0x18)</code></th>
      <td><code>"HanjaMode"</code></td>
      <td><code>null</code></td>
      <td><code>"HanjaMode"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_HANJA,<br />
        VK_KANJI (0x19)</code></th>
      <td><code>"KanjiMode"</code></td>
      <td><code>null</code></td>
      <td><code>"KanjiMode"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_ESCAPE (0x1B)</code></th>
      <td><code>"Esc"</code></td>
      <td><code>U+001B</code></td>
      <td><code>"Esc"</code></td>
      <td><code>U+001B</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_CONVERT (0x1C)</code></th>
      <td><code>"Convert"</code></td>
      <td><code>null</code></td>
      <td><code>"Convert"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_NONCONVERT (0x1D)</code></th>
      <td><code>"Nonconvert"</code></td>
      <td><code>null</code></td>
      <td><code>"Nonconvert"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_ACCEPT (0x1E)</code></th>
      <td><code>"Accept"</code></td>
      <td><code>null</code></td>
      <td><code>"Accept"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_MODECHANGE (0x1F)</code></th>
      <td><code>"ModeChange"</code></td>
      <td><code>null</code></td>
      <td><code>"ModeChange"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_SPACE (0x20)</code></th>
      <td><code>"Spacebar"</code></td>
      <td>Depends on actual inputted character</td>
      <td><code>"Spacebar"</code></td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>VK_PRIOR (0x21)</code></th>
      <td><code>"PageUp"</code></td>
      <td><code>null</code></td>
      <td><code>"PageUp"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_NEXT (0x22)</code></th>
      <td><code>"PageDown"</code></td>
      <td><code>null</code></td>
      <td><code>"PageDown"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_END (0x23)</code></th>
      <td><code>"End"</code></td>
      <td><code>null</code></td>
      <td><code>"End"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_HOME (0x24)</code></th>
      <td><code>"Home"</code></td>
      <td><code>null</code></td>
      <td><code>"Home"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_LEFT (0x25)</code></th>
      <td><code>"Left"</code></td>
      <td><code>null</code></td>
      <td><code>"Left"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_UP (0x26)</code></th>
      <td><code>"Up"</code></td>
      <td><code>null</code></td>
      <td><code>"Up"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_RIGHT (0x27)</code></th>
      <td><code>"Right"</code></td>
      <td><code>null</code></td>
      <td><code>"Right"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_DOWN (0x28)</code></th>
      <td><code>"Down"</code></td>
      <td><code>null</code></td>
      <td><code>"Down"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_SELECT (0x29)</code></th>
      <td><code>"Select"</code></td>
      <td><code>null</code></td>
      <td><code>"Select"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_PRINT (0x2A)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>null</code></td>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_EXECUTE (0x2B)</code></th>
      <td><code>"Execute"</code></td>
      <td><code>null</code></td>
      <td><code>"Execute"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_SNAPSHOT (0x2C)</code></th>
      <td><code>"PrintScreen"</code></td>
      <td><code>null</code></td>
      <td><code>"PrintScreen"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_INSERT (0x2D)</code></th>
      <td><code>"Insert"</code></td>
      <td><code>null</code></td>
      <td><code>"Insert"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_DELETE (0x2E)</code></th>
      <td><code>"Del"</code></td>
      <td style="background-color: rgb(255, 255, 204);"><code>null</code></td>
      <td><code>"Del"</code></td>
      <td style="background-color: rgb(255, 255, 204);"><code>U+007F</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_HELP (0x2F)</code></th>
      <td><code>"Help"</code></td>
      <td><code>null</code></td>
      <td><code>"Help"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_LWIN (0x5B)</code></th>
      <td><code>"Win"</code></td>
      <td><code>null</code></td>
      <td><code>"OS"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_RWIN (0x5C)</code></th>
      <td><code>"Win"</code></td>
      <td><code>null</code></td>
      <td><code>"OS"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_APPS (0x5D)</code></th>
      <td style="background-color: rgb(255, 255, 204);"><code>"Apps"</code></td>
      <td><code>null</code></td>
      <td style="background-color: rgb(255, 255, 204);"><code>"Menu"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_SLEEP (0x5F)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>null</code></td>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_NUMPAD0 (0x60)</code> ~ <code>VK_NUMPAD9 (0x69)</code></th>
      <td><code>"0" ~ "9"</code></td>
      <td><code>"0" ~ "9"</code></td>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>VK_MULTIPLY (0x6A)</code></th>
      <td><code>"Multiply"</code></td>
      <td><code>"*"</code></td>
      <td><code>"Multiply"</code></td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>VK_ADD (0x6B)</code></th>
      <td><code>"Add"</code></td>
      <td><code>"+"</code></td>
      <td><code>"Add"</code></td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>VK_SEPARATOR (0x6C)</code></th>
      <td><code>"Separator"</code></td>
      <td><code>null</code></td>
      <td><code>"Separator"</code></td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>VK_SUBTRACT (0x6D)</code></th>
      <td><code>"Subtract"</code></td>
      <td><code>"-"</code></td>
      <td><code>"Subtract"</code></td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>VK_DECIMAL (0x6E)</code></th>
      <td><code>"Decimal"</code></td>
      <td><code>"."</code></td>
      <td><code>"Decimal"</code></td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>VK_DIVIDE (0x6F)</code></th>
      <td><code>"Divide"</code></td>
      <td><code>"/"</code></td>
      <td><code>"Divide"</code></td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>VK_F1 (0x70)</code> ~ <code>VK_F24 (0x87)</code></th>
      <td><code>"F1" ~ "F24"</code></td>
      <td><code>null</code></td>
      <td><code>"F1" ~ "F24"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_NUMLOCK (0x90)</code></th>
      <td><code>"NumLock"</code></td>
      <td><code>null</code></td>
      <td><code>"NumLock"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_SCROLL (0x91)</code></th>
      <td><code>"Scroll"</code></td>
      <td><code>null</code></td>
      <td><code>"ScrollLock"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_LSHIFT (0xA0)</code></th>
      <td><code>"Shift"</code></td>
      <td><code>null</code></td>
      <td><code>"Shift"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_RSHIFT (0xA1)</code></th>
      <td><code>"Shift"</code></td>
      <td><code>null</code></td>
      <td><code>"Shift"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_LCONTROL (0xA2)</code></th>
      <td><code>"Control"</code></td>
      <td><code>null</code></td>
      <td><code>"Control"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_RCONTROL (0xA3)</code></th>
      <td><code>"Control"</code></td>
      <td><code>null</code></td>
      <td><code>"Control"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_LMENU (0xA4)</code></th>
      <td><code>"Alt"</code></td>
      <td><code>null</code></td>
      <td><code>"Alt"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_RMENU (0xA5)</code></th>
      <td><code>"Alt"</code></td>
      <td><code>null</code></td>
      <td><code>"Alt"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_BROWSER_BACK (0xA6)</code></th>
      <td><code>"BrowserBack"</code></td>
      <td><code>null</code></td>
      <td><code>"BrowserBack"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_BROWSER_FORWARD (0xA7)</code></th>
      <td><code>"BrowserForward"</code></td>
      <td><code>null</code></td>
      <td><code>"BrowserForward"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_BROWSER_REFRESH (0xA8)</code></th>
      <td><code>"BrowserRefresh"</code></td>
      <td><code>null</code></td>
      <td><code>"BrowserRefresh"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_BROWSER_STOP (0xA9)</code></th>
      <td><code>"BrowserStop"</code></td>
      <td><code>null</code></td>
      <td><code>"BrowserStop"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_BROWSER_SEARCH (0xAA)</code></th>
      <td><code>"BrowserSearch"</code></td>
      <td><code>null</code></td>
      <td><code>"BrowserSearch"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_BROWSER_FAVORITES (0xAB)</code></th>
      <td><code>"BrowserFavorites"</code></td>
      <td><code>null</code></td>
      <td><code>"BrowserFavorites"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_BROWSER_HOME (0xAC)</code></th>
      <td><code>"BrowserHome"</code></td>
      <td><code>null</code></td>
      <td><code>"BrowserHome"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_VOLUME_MUTE (0xAD)</code></th>
      <td><code>"VolumeMute"</code></td>
      <td><code>null</code></td>
      <td><code>"VolumeMute"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_VOLUME_DOWN (0xAE)</code></th>
      <td><code>"VolumeDown"</code></td>
      <td><code>null</code></td>
      <td><code>"VolumeDown"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_VOLUME_UP (0xAF)</code></th>
      <td><code>"VolumeUp"</code></td>
      <td><code>null</code></td>
      <td><code>"VolumeUp"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_MEDIA_NEXT_TRACK (0xB0)</code></th>
      <td><code>"MediaNextTrack"</code></td>
      <td><code>null</code></td>
      <td><code>"MediaNextTrack"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_MEDIA_PREV_TRACK (0xB1)</code></th>
      <td><code>"MediaPreviousTrack"</code></td>
      <td><code>null</code></td>
      <td><code>"MediaPreviousTrack</code><code>"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_MEDIA_STOP (0xB2)</code></th>
      <td><code>"MediaStop"</code></td>
      <td><code>null</code></td>
      <td><code>"MediaStop"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_MEDIA_PLAY_PAUSE (0xB3)</code></th>
      <td><code>"MediaPlayPause"</code></td>
      <td><code>null</code></td>
      <td><code>"MediaPlayPause"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_LAUNCH_MAIL (0xB4)</code></th>
      <td><code>"LaunchMail"</code></td>
      <td><code>null</code></td>
      <td><code>"LaunchMail"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_LAUNCH_MEDIA_SELECT (0xB5)</code></th>
      <td><code>"SelectMedia"</code></td>
      <td><code>null</code></td>
      <td><code>"SelectMedia"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_LAUNCH_APP1 (0xB6)</code></th>
      <td><code>"LaunchApplication1"</code></td>
      <td><code>null</code></td>
      <td><code>"LaunchApplication1"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_LAUNCH_APP2 (0xB7)</code></th>
      <td><code>"LaunchApplication2"</code></td>
      <td><code>null</code></td>
      <td><code>"LaunchApplication2"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_PROCESSKEY (0xE5)</code></th>
      <td><code>"Unidentified"</code> (tested without IME)</td>
      <td><code>null</code></td>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_PACKET (0xE7)</code></th>
      <td style="background-color: rgb(255, 255, 204);"><code>U+0000 </code>(<code>null</code> character at 1st, tested without <code>SendInput()</code> API)</td>
      <td><code>null</code></td>
      <td style="background-color: rgb(255, 255, 204);"><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_ATTN (0xF6)</code></th>
      <td><code>"Attn"</code></td>
      <td><code>null</code></td>
      <td><code>"Attn"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_CRSEL (0xF7)</code></th>
      <td><code>"Crsel"</code></td>
      <td><code>null</code></td>
      <td><code>"Crsel"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_EXSEL (0xF8)</code></th>
      <td><code>"Exsel"</code></td>
      <td><code>null</code></td>
      <td><code>"Exsel"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_EREOF (0xF9)</code></th>
      <td><code>"EraseEof"</code></td>
      <td><code>null</code></td>
      <td><code>"EraseEof"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_PLAY (0xFA)</code></th>
      <td><code>"Play"</code></td>
      <td><code>null</code></td>
      <td><code>"Play"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_ZOOM (0xFB)</code></th>
      <td><code>"Zoom"</code></td>
      <td><code>null</code></td>
      <td><code>"Zoom"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_NONAME (0xFC)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>null</code></td>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_PA1 (0xFD)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>null</code></td>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>VK_OEM_CLEAR (0xFE)</code></th>
      <td><code>"Clear"</code></td>
      <td><code>null</code></td>
      <td><code>"Clear"</code></td>
      <td><code>""</code></td>
    </tr>
  </tbody>
</table>
<table class="standard-table" id="keyname_table_mac">
  <caption>
    key names and char values on Mac</caption>
  <thead>
    <tr>
      <th scope="row">Native virtual keycodes</th>
      <th colspan="2" rowspan="1" scope="col">Gecko (plan)</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <th scope="row"><code>kVK_ISO_Section (0x0A)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_Return (0x24)</code></th>
      <td><code>"Enter"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_Tab (0x30)</code></th>
      <td><code>"Tab"</code></td>
      <td><code>U+0009</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_Space (0x31)</code></th>
      <td><code>"Spacebar"</code></td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_Delete (0x33)</code></th>
      <td><code>"Backspace"</code></td>
      <td><code>U+0008</code></td>
    </tr>
    <tr>
      <th scope="row">Enter key on keypad of PowerBook (<code>0x34</code>)</th>
      <td><code>"Enter"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_Escape (0x35)</code></th>
      <td><code>"Esc"</code></td>
      <td><code>U+001B</code></td>
    </tr>
    <tr>
      <th scope="row">right-command key (<code>0x36</code>)</th>
      <td><code>"Meta"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_Command (0x37)</code></th>
      <td><code>"Meta"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_Shift (0x38)</code></th>
      <td><code>"Shift"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_CapsLock (0x39)</code></th>
      <td><code>"CapsLock"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_Option (0x3A)</code></th>
      <td><code>"Alt"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_Control (0x3B)</code></th>
      <td><code>"Control"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_RightShift (0x3C)</code></th>
      <td><code>"Shift"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_RightOption (0x3D)</code></th>
      <td><code>"Alt"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_RightControl (0x3E)</code></th>
      <td><code>"Control"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_Function (0x3F)</code></th>
      <td><code>"Fn"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_F17 (0x40)</code></th>
      <td><code>"F17"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_ANSI_KeypadDecimal (0x41)</code></th>
      <td><code>"Decimal"</code></td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_ANSI_KeypadMultiply (0x43)</code></th>
      <td><code>"Multiply"</code></td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_ANSI_KeypadPlus (0x45)</code></th>
      <td><code>"Add"</code></td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_ANSI_KeypadClear (0x47)</code></th>
      <td><code>"Clear"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_VolumeUp (0x48)</code></th>
      <td><code>"VolumeUp"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_VolumeDown (0x49)</code></th>
      <td><code>"VolumeDown"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_Mute (0x4A)</code></th>
      <td><code>"VolumeMute"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_ANSI_KeypadDivide (0x4B)</code></th>
      <td><code>"Divide"</code></td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_ANSI_KeypadEnter (0x4C)</code></th>
      <td><code>"Enter"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_ANSI_KeypadMinus (0x4E)</code></th>
      <td><code>"Subtract"</code></td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_F18 (0x4F)</code></th>
      <td><code>"F18"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_F19 (0x50)</code></th>
      <td><code>"F19"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_ANSI_KeypadEquals (0x51)</code></th>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_ANSI_Keypad0 (0x52)</code></th>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_ANSI_Keypad1 (0x53)</code></th>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_ANSI_Keypad2 (0x54)</code></th>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_ANSI_Keypad3 (0x55)</code></th>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_ANSI_Keypad4 (0x56)</code></th>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_ANSI_Keypad5 (0x57)</code></th>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_ANSI_Keypad6 (0x58)</code></th>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_ANSI_Keypad7 (0x59)</code></th>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_F20 (0x5A)</code></th>
      <td><code>"F20"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_ANSI_Keypad8 (0x5B)</code></th>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_ANSI_Keypad9 (0x5C)</code></th>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_JIS_KeypadComma (0x5F)</code></th>
      <td><code>"Separator"</code></td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_F5 (0x60)</code></th>
      <td><code>"F5"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_F6 (0x61)</code></th>
      <td><code>"F6"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_F7 (0x62)</code></th>
      <td><code>"F7"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_F3 (0x63)</code></th>
      <td><code>"F3"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_F8 (0x64)</code></th>
      <td><code>"F8"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_F9 (0x65)</code></th>
      <td><code>"F9"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_JIS_Eisu (0x66)</code></th>
      <td><code>"RomanCharacters"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_F11 (0x67)</code></th>
      <td><code>"F11"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_JIS_Kana (0x68)</code></th>
      <td><code>"KanjiMode"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_F13 (0x69)</code></th>
      <td><code>"F13"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_F16 (0x6A)</code></th>
      <td><code>"F16"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_F14 (0x6B)</code></th>
      <td><code>"F14"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_F10 (0x6D)</code></th>
      <td><code>"F10"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_F12 (0x6F)</code></th>
      <td><code>"F12"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_F15 (0x71)</code></th>
      <td><code>"F15"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_Help (0x72)</code></th>
      <td><code>"Help"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_Home (0x73)</code></th>
      <td><code>"Home"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_PageUp (0x74)</code></th>
      <td><code>"PageUp"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_ForwardDelete (0x75)</code></th>
      <td><code>"Del"</code></td>
      <td><code>U+007F</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_F4 (0x76)</code></th>
      <td><code>"F4"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_End (0x77)</code></th>
      <td><code>"End"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_F2 (0x78)</code></th>
      <td><code>"F2"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_PageDown (0x79)</code></th>
      <td><code>"PageDown"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_F1 (0x7A)</code></th>
      <td><code>"F1"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_LeftArrow (0x7B)</code></th>
      <td><code>"Left"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_RightArrow (0x7C)</code></th>
      <td><code>"Right"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_DownArrow (0x7D)</code></th>
      <td><code>"Down"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>kVK_UpArrow (0x7E)</code></th>
      <td><code>"Up"</code></td>
      <td><code>""</code></td>
    </tr>
  </tbody>
</table>
<table class="standard-table" id="keyname_table_android">
  <caption>
    keynames and char values on Android and Firefox OS</caption>
  <thead>
    <tr>
      <th scope="row"><a href="http://developer.android.com/reference/android/view/KeyEvent.html" title="http://developer.android.com/reference/android/view/KeyEvent.html">Android keycode</a></th>
      <th colspan="2" rowspan="1" scope="col">Gecko (plan)</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <th scope="row"><code>AKEYCODE_UNKNOWN (0)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_SOFT_LEFT (1)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_SOFT_RIGHT (2)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_HOME (3)</code></th>
      <td><code>"Exit"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_BACK (4)</code></th>
      <td><code>"BrowserBack"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_CALL (5)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_ENDCALL (6)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_0 (7)</code> ~ <code>AKEYCODE_9 (16)</code></th>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_STAR (17)</code></th>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_POUND (18)</code></th>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_DPAD_UP (19)</code></th>
      <td><code>"Up"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_DPAD_DOWN (20)</code></th>
      <td><code>"Down"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_DPAD_LEFT (21)</code></th>
      <td><code>"Left"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_DPAD_RIGHT (22)</code></th>
      <td><code>"Right"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_DPAD_CENTER (23)</code></th>
      <td><code>"Accept"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_VOLUME_UP (24)</code></th>
      <td><code>"VolumeUp"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_VOLUME_DOWN (25)</code></th>
      <td><code>"VolumeDown"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_POWER (26)</code></th>
      <td><code>"Power"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_CAMERA (27)</code></th>
      <td><code>"Camera"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_CLEAR (28)</code></th>
      <td><code>"Clear"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_A (29)</code> ~ <code>AKEYCODE_Z (54)</code></th>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_COMMA (55)</code></th>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_PERIOD (56)</code></th>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_ALT_LEFT (57)</code></th>
      <td><code>"Alt"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_ALT_RIGHT (58)</code></th>
      <td><code>"Alt"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_SHIFT_LEFT (59)</code></th>
      <td><code>"Shift"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_SHIFT_RIGHT (60)</code></th>
      <td><code>"Shift"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_TAB (61)</code></th>
      <td><code>"Tab"</code></td>
      <td><code>U+0009</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_SPACE (62)</code></th>
      <td><code>"Spacebar"</code></td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_SYM (63)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_EXPLORER (64)</code></th>
      <td><code>"LaunchApplication1"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_ENVELOPE (65)</code></th>
      <td><code>"LaunchMail"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_ENTER (66)</code></th>
      <td><code>"Enter"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_DEL (67)</code></th>
      <td><code>"Backspace"</code></td>
      <td><code>U+0008</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_GRAVE (68)</code></th>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_MINUS (69)</code></th>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_EQUALS (70)</code></th>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_LEFT_BRACKET (71)</code></th>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_RIGHT_BRACKET (72)</code></th>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_BACKSLASH (73)</code></th>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_SEMICOLON (74)</code></th>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_APOSTROPHE (75)</code></th>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_SLASH (76)</code></th>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_AT (77)</code></th>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_NUM (78)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_HEADSETHOOK (79)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_FOCUS (80)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_PLUS (81)</code></th>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_MENU (82)</code></th>
      <td><code>"Menu"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_NOTIFICATION (83)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_SEARCH (84)</code></th>
      <td><code>"BrowserSearch"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_MEDIA_PLAY_PAUSE (85)</code></th>
      <td><code>"MediaPlayPause"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_MEDIA_STOP (86)</code></th>
      <td><code>"MediaStop"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_MEDIA_NEXT (87)</code></th>
      <td><code>"MediaNextTrack"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_MEDIA_PREVIOUS (88)</code></th>
      <td><code>"MediaPreviousTrack"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_MEDIA_REWIND (89)</code></th>
      <td><code>"MediaRewind"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_MEDIA_FAST_FORWARD (90)</code></th>
      <td><code>"FastFwd"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_MUTE (91)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_PAGE_UP (92)</code></th>
      <td><code>"PageUp"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_PAGE_DOWN (93)</code></th>
      <td><code>"PageDown"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_PICTSYMBOLS (94)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_SWITCH_CHARSET (95)</code></th>
      <td><code>"ModeChange"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_BUTTON_A (96)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_BUTTON_B (97)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_BUTTON_C (98)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_BUTTON_X (99)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_BUTTON_Y (100)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_BUTTON_Z (101)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_BUTTON_L1 (102)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_BUTTON_R1 (103)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_BUTTON_L2 (104)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_BUTTON_R2 (105)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_BUTTON_THUMBL (106)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_BUTTON_THUMBR (107)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_BUTTON_START (108)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_BUTTON_SELECT (109)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_BUTTON_MODE (110)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_ESCAPE (111)</code></th>
      <td><code>"Esc"</code></td>
      <td><code>U+001B</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_FORWARD_DEL (112)</code></th>
      <td><code>"Del"</code></td>
      <td><code>U+007F</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_CTRL_LEFT (113)</code></th>
      <td><code>"Control"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_CTRL_RIGHT (114)</code></th>
      <td><code>"Control"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_CAPS_LOCK (115)</code></th>
      <td><code>"CapsLock"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_SCROLL_LOCK (116)</code></th>
      <td><code>"ScrollLock"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_META_LEFT (117)</code></th>
      <td><code>"Meta"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_META_RIGHT (118)</code></th>
      <td><code>"Meta"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_FUNCTION (119)</code></th>
      <td><code>"Fn"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_SYSRQ (120)</code></th>
      <td><code>"PrintScreen"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_BREAK (121)</code></th>
      <td><code>"Pause"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_MOVE_HOME (122)</code></th>
      <td><code>"Home"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_MOVE_END (123)</code></th>
      <td><code>"End"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_INSERT (124)</code></th>
      <td><code>"Insert"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_FORWARD (125)</code></th>
      <td><code>"BrowserForward"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_MEDIA_PLAY (126)</code></th>
      <td><code>"MediaPlay"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_MEDIA_PAUSE (127)</code></th>
      <td><code>"MediaPause"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_MEDIA_CLOSE (128)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_MEDIA_EJECT (129)</code></th>
      <td><code>"Eject"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_MEDIA_RECORD (130)</code></th>
      <td><code>"MediaRecord"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_F1 (131)</code> ~ <code>AKEYCODE_F12 (142)</code></th>
      <td><code>"F1"</code> ~ <code>"F12"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_NUM_LOCK (143)</code></th>
      <td><code>"NumLock"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_NUMPAD_0 (144)</code> ~ <code>AKEYCODE_NUMPAD_9 (153)</code></th>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_NUMPAD_DIVIDE (154)</code></th>
      <td><code>"Divide"</code></td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_NUMPAD_MULTIPLY (155)</code></th>
      <td><code>"Multiply"</code></td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_NUMPAD_SUBTRACT (156)</code></th>
      <td><code>"Subtract"</code></td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_NUMPAD_ADD (157)</code></th>
      <td><code>"Add"</code></td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_NUMPAD_DOT (158)</code></th>
      <td><code>"Decimal"</code></td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_NUMPAD_COMMA (159)</code></th>
      <td><code>"Separator"</code></td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_NUMPAD_ENTER (160)</code></th>
      <td><code>"Enter"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_NUMPAD_EQUALS (161)</code></th>
      <td><code>"Equals"</code></td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_NUMPAD_LEFT_PAREN (162)</code></th>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_NUMPAD_RIGHT_PAREN (163)</code></th>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_VOLUME_MUTE (164)</code></th>
      <td><code>"VolumeMute"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_INFO (165)</code></th>
      <td><code>"Info"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_CHANNEL_UP (166)</code></th>
      <td><code>"ChannelUp"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_CHANNEL_DOWN (167)</code></th>
      <td><code>"ChannelDown"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_ZOOM_IN (168)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_ZOOM_OUT (169)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_TV (170)</code></th>
      <td><code>"Live"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_WINDOW (171)</code></th>
      <td><code>"PinPToggle"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_GUIDE (172)</code></th>
      <td><code>"Guide"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_DVR (173)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_BOOKMARK (174)</code></th>
      <td><code>"BrowserFavorites"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_CAPTIONS (175)</code></th>
      <td><code>"Subtitle"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_SETTINGS (176)</code></th>
      <td><code>"Settings"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_TV_POWER (177)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_TV_INPUT (178)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_STB_POWER (179)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_STB_INPUT (180)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_AVR_POWER (181)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_AVR_INPUT (182)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_PROG_RED (183)</code></th>
      <td><code>"Red"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_PROG_GREEN (184)</code></th>
      <td><code>"Green"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_PROG_YELLOW (185)</code></th>
      <td><code>"Yellow"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_PROG_BLUE (186)</code></th>
      <td><code>"Blue"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_APP_SWITCH (187)</code></th>
      <td><code>"Apps"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_BUTTON_1 (188)</code> ~ <code>AKEYCODE_BUTTON_16 (203)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_LANGUAGE_SWITCH (204)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_MANNER_MODE (205)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_3D_MODE (206)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_CONTACTS (207)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_CALENDAR (208)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_MUSIC (209)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_CALCULATOR (210)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_ZENKAKU_HANKAKU (211)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_EISU (212)</code></th>
      <td><code>"RomanCharacters"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_MUHENKAN (213)</code></th>
      <td><code>"Nonconvert"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_HENKAN (214)</code></th>
      <td><code>"Convert"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_KATAKANA_HIRAGANA (215)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_YEN (216)</code></th>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_RO (217)</code></th>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_KANA (218)</code></th>
      <td><code>"KanjiMode"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>AKEYCODE_ASSIST (219)</code></th>
      <td><code>"Help"</code></td>
      <td><code>""</code></td>
    </tr>
  </tbody>
</table>
<table class="standard-table" id="keyname_table_gtk">
  <caption>
    key names and char values on Linux (GTK)</caption>
  <thead>
    <tr>
      <th scope="row">keysyms</th>
      <th colspan="2" rowspan="1" scope="col">Gecko (plan)</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <th scope="row"><code>GDK_BackSpace</code></th>
      <td><code>"Backspace"</code></td>
      <td><code>U+0008</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Tab</code></th>
      <td><code>"Tab"</code></td>
      <td><code>U+0009</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Linefeed</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Clear</code></th>
      <td><code>"Clear"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Return</code></th>
      <td><code>"Enter</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Pause</code></th>
      <td><code>"Pause"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Scroll_Lock</code></th>
      <td><code>"ScrollLock"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Sys_Req</code></th>
      <td><code>"PrintScreen"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Escape</code></th>
      <td><code>"Esc"</code></td>
      <td><code>U+001B</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Delete</code></th>
      <td><code>"Del"</code></td>
      <td><code>U+007F</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Multi_key</code></th>
      <td><code>"Compose"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Codeinput (GDK_KEY_Hangul_Codeinput)</code></th>
      <td><code>"CodeInput"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_SingleCandidate (</code><code><code>GDK_Kanji_Bangou, </code>GDK_Hangul_SingleCandidate)</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_MultipleCandidate (GDK_Hangul_MultipleCandidate)</code></th>
      <td><code>"AllCandidates"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_PreviousCandidate (GDK_Hangul_PreviousCandidate)</code></th>
      <td><code>"PreviousCandidate"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Kanji</code></th>
      <td><code>"KanjiMode"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Muhenkan</code></th>
      <td><code>"Nonconvert"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Henkan_Mode</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Henkan</code></th>
      <td><code>"Convert"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Romaji</code></th>
      <td><code>"RomanCharacters"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Hiragana</code></th>
      <td><code>"Hiragana"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Katakana</code></th>
      <td><code>"Katakana"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Hiragana_Katakana</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Zenkaku</code></th>
      <td><code>"FullWidth"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Hankaku</code></th>
      <td><code>"HalfWidth"</code></td>
      <td><code>""</code><code><span style="display: none;"> </span></code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Zenkaku_Hankaku</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Touroku</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Massyo</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Kana_Lock</code></th>
      <td><code>"KanaMode"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Kana_Shift</code></th>
      <td><code>"KanaMode"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Eisu_Shift</code></th>
      <td><code>"Alphanumeric"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Eisu_toggle</code></th>
      <td><code>"Alphanumeric"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Zen_Koho</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Mae_Koho</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Home</code></th>
      <td><code>"Home"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Left</code></th>
      <td><code>"Left"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Up</code></th>
      <td><code>"Up"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Right</code></th>
      <td><code>"Right"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Down</code></th>
      <td><code>"Down"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Prior (GDK_Page_Up)</code></th>
      <td><code>"PageUp"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Next (GDK_Page_Down)</code></th>
      <td><code>"PageDown"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_End</code></th>
      <td><code>"End"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Begin</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Select</code></th>
      <td><code>"Select"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Print</code></th>
      <td><code>"PrintScreen"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Execute</code></th>
      <td><code>"Execute"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Insert</code></th>
      <td><code>"Insert"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Undo</code></th>
      <td><code>"Undo"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Redo</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Menu</code></th>
      <td><code>"Menu"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Find</code></th>
      <td><code>"Find"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Cancel</code></th>
      <td><code>"Cancel"</code></td>
      <td><code>U+0018</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Help</code></th>
      <td><code>"Help"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Break</code></th>
      <td><code>"Pause"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row">
        <p><code>GDK_Mode_switch (GDK_script_switch,<br />
          GDK_ISO_Group_Shift, GDK_kana_switch,<br />
          GDK_Arabic_switch, GDK_Greek_switch,<br />
          GDK_Hebrew_switch, GDK_Hangul_switch)</code></p>
      </th>
      <td><code>"AltGraph"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Num_Lock</code></th>
      <td><code>"NumLock"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_KP_Space</code></th>
      <td><code>"Spacebar"</code></td>
      <td><code>U+0020</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_KP_Tab</code></th>
      <td><code>"Tab"</code></td>
      <td><code>U+0009</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_KP_Enter</code></th>
      <td><code>"Enter"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_KP_F1 ~ </code><code>GDK_KP_F4</code></th>
      <td><code>"F1"</code> ~ <code>"F4"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_KP_Home</code></th>
      <td><code>"Home"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_KP_Left</code></th>
      <td><code>"Left"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_KP_Up</code></th>
      <td><code>"Up"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_KP_Right</code></th>
      <td><code>"Right"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_KP_Down</code></th>
      <td><code>"Down"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_KP_Prior (GDK_KP_Page_Up)</code></th>
      <td><code>"PageUp"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_KP_Next (GDK_KP_Page_Down)</code></th>
      <td><code>"PageDown"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_KP_End</code></th>
      <td><code>"End"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_KP_Begin</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_KP_Insert</code></th>
      <td><code>"Insert"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_KP_Delete</code></th>
      <td><code>"Del"</code></td>
      <td><code>U+007F</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_KP_Equal</code></th>
      <td><code>"Equals"</code></td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_KP_Multiply</code></th>
      <td><code>"Multiply"</code></td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_KP_Add</code></th>
      <td><code>"Add"</code></td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_KP_Separator</code></th>
      <td><code>"Separator"</code></td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_KP_Subtract</code></th>
      <td><code>"Subtract"</code></td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_KP_Decimal</code></th>
      <td><code>"Decimal"</code></td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_KP_Divide</code></th>
      <td><code>"Divide"</code></td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_KP_0</code> ~ <code>GDK_KP_9</code></th>
      <td>Same as the char value</td>
      <td>Depends on actual inputted character</td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_F1</code> ~ <code>GDK_F10</code></th>
      <td><code>"F1"</code> ~ <code>"F10"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_F11 (GDK_L1)</code> ~ <code>GDK_F20 (GDK_L10)</code></th>
      <td><code>"F11"</code> ~ <code>"F20"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_F21 (GDK_R1)</code> ~ <code>GDK_F35 (GDK_R15)</code></th>
      <td><code>"F21"</code> ~ <code>"F35"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Shift_L</code></th>
      <td><code>"Shift"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Shift_R</code></th>
      <td><code>"Shift"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Control_L</code></th>
      <td><code>"Control"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Control_R</code></th>
      <td><code>"Control"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Caps_Lock</code></th>
      <td><code>"CapsLock"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Shift_Lock</code></th>
      <td><code>"Shift"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Meta_L</code></th>
      <td><code>"Meta"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Meta_R</code></th>
      <td><code>"Meta"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Alt_L</code></th>
      <td><code>"Alt"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Alt_R</code></th>
      <td><code>"Alt"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Super_L</code></th>
      <td><code>"OS"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Super_R</code></th>
      <td><code>"OS"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Hyper_L</code></th>
      <td><code>"OS"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Hyper_R</code></th>
      <td><code>"OS"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Lock</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Level2_Latch</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Level3_Shift</code></th>
      <td><code>"AltGraph"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Level3_Latch</code></th>
      <td><code>"AltGraph"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Level3_Lock</code></th>
      <td><code>"AltGraph"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Level5_Shift</code></th>
      <td><code>"AltGraph"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Level5_Latch</code></th>
      <td><code>"AltGraph"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Level5_Lock</code></th>
      <td><code>"AltGraph"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Group_Latch</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Group_Lock</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Next_Group</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Next_Group_Lock</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Prev_Group</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Prev_Group_Lock</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_First_Group</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_First_Group_Lock</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Last_Group</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Last_Group_Lock</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Left_Tab</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Move_Line_Up</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Move_Line_Down</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Partial_Line_Up</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Partial_Line_Down</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Partial_Space_Left</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Partial_Space_Right</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Set_Margin_Left</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Set_Margin_Right</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Release_Margin_Left</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Release_Margin_Right</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Release_Both_Margins</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Fast_Cursor_Left</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Fast_Cursor_Right</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Fast_Cursor_Up</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Fast_Cursor_Down</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Continuous_Underline</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Discontinuous_Underline</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Emphasize</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Center_Object</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ISO_Enter</code></th>
      <td><code>"Enter"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_First_Virtual_Screen</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Prev_Virtual_Screen</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Next_Virtual_Screen</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Last_Virtual_Screen</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Terminate_Server</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_AccessX_Enable</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_AccessX_Feedback_Enable</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_RepeatKeys_Enable</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_SlowKeys_Enable</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_BounceKeys_Enable</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_StickyKeys_Enable</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_MouseKeys_Enable</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_MouseKeys_Accel_Enable</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Overlay1_Enable</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Overlay2_Enable</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_AudibleBell_Enable</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Pointer_*</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ch</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Ch</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_CH</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_c_h</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_C_h</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_C_H</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_3270_Duplicate</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_3270_FieldMark</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_3270_Right2</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_3270_Left2</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_3270_BackTab</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_3270_EraseEOF</code></th>
      <td><code>"EraseEof"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_3270_EraseInput</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_3270_Reset</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_3270_Quit</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_3270_PA1</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_3270_PA2</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_3270_PA3</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_3270_Test</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_3270_Attn</code></th>
      <td><code>"Attn"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_3270_CursorBlink</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_3270_AltCursor</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_3270_KeyClick</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_3270_Jump</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_3270_Ident</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_3270_Rule</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_3270_Copy</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_3270_Play</code></th>
      <td><code>"Play"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_3270_Setup</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_3270_Record</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_3270_ChangeScreen</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_3270_DeleteWord</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_3270_ExSelect</code></th>
      <td><code>"Exsel"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_3270_CursorSelect</code></th>
      <td><code>"Crsel"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_3270_PrintScreen</code></th>
      <td><code>"PrintScreen"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_3270_Enter</code></th>
      <td><code>"Enter"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_space</code></th>
      <td><code>"Spacebar"</code></td>
      <td><code>U+0020</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Hangul</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Hangul_Start</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Hangul_End</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Hangul_Hanja</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Hangul_Jamo</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Hangul_Romaja</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Hangul_Jeonja</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Hangul_Banja</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Hangul_PreHanja</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Hangul_PostHanja</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ModeLock</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_MonBrightnessUp</code></th>
      <td><code>"BrightnessUp"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_MonBrightnessDown</code></th>
      <td><code>"BrightnessDown"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_KbdLightOnOff</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_KbdBrightnessUp</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_KbdBrightnessDown</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Standby</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_AudioLowerVolume</code></th>
      <td><code>"VolumeDown"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_AudioMute</code></th>
      <td><code>"VolumeMute"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_AudioRaiseVolume</code></th>
      <td><code>"VolumeUp"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_AudioPlay</code></th>
      <td><code>"MediaPlay"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_AudioStop</code></th>
      <td><code>"MediaStop"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_AudioPrev</code></th>
      <td><code>"MediaPreviousTrack"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_AudioNext</code></th>
      <td><code>"MediaNextTrack"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_HomePage</code></th>
      <td><code>"BrowserHome"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Mail</code></th>
      <td><code>"LaunchMail"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Start</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Search</code></th>
      <td><code>"BrowserSearch"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_AudioRecord</code></th>
      <td><code>"MediaRecord"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Calculator</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Memo</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ToDoList</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Calendar</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_PowerDown</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ContrastAdjust</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_RockerUp</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_RockerDown</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_RockerEnter</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Back</code></th>
      <td><code>"BrowserBack"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Forward</code></th>
      <td><code>"BrowserForward"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Stop</code></th>
      <td><code>"BrowserStop"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Refresh</code></th>
      <td><code>"BrowserRefresh"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_PowerOff</code></th>
      <td><code>"Power"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_WakeUp</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Eject</code></th>
      <td><code>"Eject"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ScreenSaver</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_WWW</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Sleep</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Favorites</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_AudioPause</code></th>
      <td><code>"MediaPause"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_AudioMedia</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_MyComputer</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_VendorHome</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_LightBulb</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Shop</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_History</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_OpenURL</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_AddFavorite</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_HotLinks</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_BrightnessAdjust</code></th>
      <td><code>"Dimmer"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Finance</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Community</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_AudioRewind</code></th>
      <td><code>"MediaRewind"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_BackForward</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Launch0 ~ GDK_Launch9</code></th>
      <td><code>"LaunchApplication1"</code> ~ <code>"LaunchApplication10"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_LaunchA ~ GDK_LaunchF</code></th>
      <td><code>"LaunchApplication11"</code> ~ <code>"LaunchApplication16"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ApplicationLeft</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ApplicationRight</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Book</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_CD</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_WindowClear</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Close</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Copy</code></th>
      <td><code>"Copy"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Cut</code></th>
      <td><code>"Cut"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Display</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_DOS</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Documents</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Excel</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Explorer</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Game</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Go</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_iTouch</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_LogOff</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Market</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Meeting</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_MenuKB</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_MenuPB</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_MySites</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_New</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_News</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_OfficeHome</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Open</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Option</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Paste</code></th>
      <td><code>"Paste"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Phone</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Reply</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Reload</code></th>
      <td><code>"BrowserRefresh"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_RotateWindows</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_RotationPB</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_RotationKB</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Save</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ScrollUp</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ScrollDown</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ScrollClick</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Send</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Spell</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_SplitScreen</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Support</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_TaskPane</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Terminal</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Tools</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Travel</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_UserPB</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_User1KB</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_User2KB</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Video</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_WheelButton</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Word</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Xfer</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ZoomIn</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ZoomOut</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Away</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Messenger</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_WebCam</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_MailForward</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Pictures</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Music</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Battery</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Bluetooth</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_WLAN</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_UWB</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_AudioForward</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_AudioRepeat</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_AudioRandomPlay</code></th>
      <td><code>"RandomToggle"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Subtitle</code></th>
      <td><code>"Subtitle"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_AudioCycleTrack</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_CycleAngle</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_FrameBack</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_FrameForward</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Time</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_SelectButton</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_View</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_TopMenu</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Red</code></th>
      <td><code>"Red"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Green</code></th>
      <td><code>"Green"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Yellow</code></th>
      <td><code>"Yellow"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Blue</code></th>
      <td><code>"Blue"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Suspend</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Hibernate</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_TouchpadToggle</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_TouchpadOn</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_TouchpadOff</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_AudioMicMute</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Switch_VT_1</code> ~ <code>GDK_Switch_VT_12</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Ungrab</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_ClearGrab</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Next_VMode</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_Prev_VMode</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_LogWindowTree</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
    <tr>
      <th scope="row"><code>GDK_LogGrabInfo</code></th>
      <td><code>"Unidentified"</code></td>
      <td><code>""</code></td>
    </tr>
  </tbody>
</table>
<h2 id="Specification">Specification</h2>
<p><a class="external" href="http://www.w3.org/TR/DOM-Level-3-Events/#events-KeyboardEvent" title="http://www.w3.org/TR/DOM-Level-3-Events/#events-KeyboardEvent">DOM 3 Events: KeyboardEvent</a></p>
<h2 id="Example">Example</h2>
<pre class="brush: html">
&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;script&gt;
var metaChar = false;
var exampleKey = 16;

function keyEvent(event) {
  var key = event.keyCode || event.which;
  var keychar = String.fromCharCode(key);
  if (key == exampleKey) {
    metaChar = true;
  }
  if (key != exampleKey) {
    if (metaChar) {
      alert("Combination of metaKey + " + keychar);
      metaChar = false;
    } else {
      alert("Key pressed " + key);
    }
  }
}

function metaKeyUp (event) {
  var key = event.keyCode || event.which;

  if (key == exampleKey) {
    metaChar = false;
  }
}
&lt;/script&gt;
&lt;/head&gt;

&lt;body onkeydown="keyEvent(event)" onkeyup="metaKeyUp(event)"&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<div id="cke_pastebin" style="position: absolute; top: 25784.1px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">
  <code>""</code><code>""</code></div>
Revert to this revision