This site has been acquired by Toptal
0 - That key has no keycode3 - break8 - backspace / delete9 - tab12 - clear13 - enter16 - shift17 - ctrl18 - alt19 - pause/break20 - caps lock21 - hangul25 - hanja27 - escape28 - conversion29 - non-conversion32 - spacebar33 - page up34 - page down35 - end36 - home37 - left arrow38 - up arrow39 - right arrow40 - down arrow41 - select42 - print43 - execute44 - Print Screen / F13 (firefox)45 - insert46 - delete47 - help48 - 049 - 150 - 251 - 352 - 453 - 554 - 655 - 756 - 857 - 958 - :59 - semicolon (firefox), equals60 - <61 - equals (firefox)63 - ß64 - @ (firefox)65 - a66 - b67 - c68 - d69 - e70 - f71 - g72 - h73 - i74 - j75 - k76 - l77 - m78 - n79 - o80 - p81 - q82 - r83 - s84 - t85 - u86 - v87 - w88 - x89 - y90 - z91 - Windows Key / Left ⌘ / Chromebook Search key92 - right window key93 - Windows Menu / Right ⌘95 - sleep96 - numpad 097 - numpad 198 - numpad 299 - numpad 3100 - numpad 4101 - numpad 5102 - numpad 6103 - numpad 7104 - numpad 8105 - numpad 9106 - multiply107 - add108 - numpad period (firefox)109 - subtract110 - decimal point111 - divide112 - f1113 - f2114 - f3115 - f4116 - f5117 - f6118 - f7119 - f8120 - f9121 - f10122 - f11123 - f12124 - f13125 - f14126 - f15127 - f16128 - f17129 - f18130 - f19131 - f20132 - f21133 - f22134 - f23135 - f24136 - f25137 - f26138 - f27139 - f28140 - f29141 - f30142 - f31143 - f32144 - num lock145 - scroll lock151 - airplane mode160 - ^161 - !162 - ؛ (arabic semicolon)163 - #164 - $165 - ù166 - page backward167 - page forward168 - refresh169 - closing paren (AZERTY)170 - *171 - ~ + * key172 - home key173 - minus (firefox), mute/unmute174 - decrease volume level175 - increase volume level176 - next177 - previous178 - stop179 - play/pause180 - e-mail181 - mute/unmute (firefox)182 - decrease volume level (firefox)183 - increase volume level (firefox)186 - semi-colon / ñ187 - equal sign188 - comma189 - dash190 - period191 - forward slash / ç192 - grave accent / ñ / æ / ö193 - ?, / or °194 - numpad period (chrome)219 - open bracket220 - back slash221 - close bracket / å222 - single quote / ø / ä223 - `224 - left or right ⌘ key (firefox)225 - altgr226 - < /git >, left back slash230 - GNOME Compose Key231 - ç233 - XF86Forward234 - XF86Back235 - non-conversion240 - alphanumeric242 - hiragana/katakana243 - half-width/full-width244 - kanji251 - unlock trackpad (Chrome/Edge)255 - toggle touchpad
Table

133

Press any key to get the JavaScript event keycode

event.key
F22

The value of the key pressed. Accounts for modifiers keys that return CAPS and alternate chars.

event.location
()

Some keys exist more than once on your keyboard. This provides the location of the key pressed. Try it with both shifts. More here

event.code
F22

The physical key on the keyboard. Doesn't care if you are holding a modifier like Shift.

event.which
133

event.which and event.keyCode are (deprecated) in modern browsers. Use .key or .code instead.

Description
F22

This is the description we have created. Think it can be improved? PR us on GitHub

Meta Keys
^
Event Dump
{
 "key": "F22",
 "code": "F22",
 "description": "F22",
 "keyCode": "133",
 "which": "133"
}
Unicode
History