Web Tools: ASCII, B64Converter, B64Image, Crontab, JSON, KeyCodes, Recoder, Regexer, TDiff, UTime, WCount, XML.

JavaScript KeyboardEvent KeyCodes Clear

EscF1F2F3F4F5F6F7F8F9F10F11F12PrtScScrLkPause
1!2"3#4$5%6^7&8*9(0)-_=+BkSpaceInsHomePgUpNum/*-
TabQWERTYUIOP[{]}EnterDelEndPgDn789+
CapsLkASDFGHJKL;:'@#~456
Shift\|ZXCVBNM,<.>/?Shift123Enter
CtrlAltSpaceAltCtrl0.

Start typing or click a key above to inspect it.



  • event.code =
  • event.key =
  • event.keyCode =
  • event.location =
  • event.which =
  • event.altKey =
  • event.ctrlKey =
  • event.metaKey =
  • event.shiftKey =

Known KeyCodes
CodeDescription
0Key Without a Key Code
1Unknown
2Unknown
3Break
4Unknown
5Unknown
6Unknown
7Unknown
8Backspace / Delete
9Tab
10Unknown
11Unknown
12Clear
13Enter
14Unknown
15Unknown
16Shift
17Ctrl
18Alt
19Pause / Break
20Caps Lock
21Hangul
22Unknown
23Unknown
24Unknown
25Hanja
26Unknown
27Escape
28Conversion
29Non-conversion
30Unknown
31Unknown
32Spacebar
33Page Up
34Page Down
35End
36Home
37Left Arrow
38Up Arrow
39Right Arrow
40Down Arrow
41Select
42Print
43Execute
44Print Screen
45Insert
46Delete
47Help
480
491
502
513
524
535
546
557
568
579
58:
59Semi-colon (Firefox), Equals
60<
61Equals (Firefox)
62Unknown
63ß
64@ (Firefox)
65a
66b
67c
68d
69e
70f
71g
72h
73i
74j
75k
76l
77m
78n
79o
80p
81q
82r
83s
84t
85u
86v
87w
88x
89y
90z
91Windows Key / Left ⌘ / Chromebook Search Key
92Right Window Key
93Windows Menu / Right ⌘
94Unknown
95Sleep
96Numpad 0
97Numpad 1
98Numpad 2
99Numpad 3
100Numpad 4
101Numpad 5
102Numpad 6
103Numpad 7
104Numpad 8
105Numpad 9
106Multiply
107Add
108Numpad Period (Firefox)
109Subtract
110Decimal Point
111Fivide
112F1
113F2
114F3
115F4
116F5
117F6
118F7
119F8
120F9
121F10
122F11
123F12
124F13
125F14
126F15
127F16
CodeDescription
128F17
129F18
130F19
131F20
132F21
133F22
134F23
135F24
136F25
137F26
138F27
139F28
140F29
141F30
142F31
143F32
144Num Lock
145Scroll Lock
146Unknown
147Unknown
148Unknown
149Unknown
150Unknown
151Airplane Mode
152Unknown
153Unknown
154Unknown
155Unknown
156Unknown
157Unknown
158Unknown
159Unknown
160^
161!
162؛ (Arabic Semi-colon)
163#
164$
165ù
166Page Backward
167Page Forward
168Refresh
169Closing Paren (AZERTY)
170*
171~ + * Key
172Home Key
173Minus (Firefox), Mute / Unmute
174Decrease Volume
175Increase Volume
176Next
177Previous
178Stop
179Play / Pause
180Email
181Mute / Unmute (Firefox)
182Decrease Volume (Firefox)
183Increase Volume (Firefox)
184Unknown
185Unknown
186Semi-colon / ñ
187Equals Sign
188Comma
189Dash
190Period
191Forward Slash / ç
192Grave Accent / ñ / æ / ö
193?, / or °
194Numpad Period (Chrome)
195Unknown
196Unknown
197Unknown
198Unknown
199Unknown
200Unknown
201Unknown
202Unknown
203Unknown
204Unknown
205Unknown
206Unknown
207Unknown
208Unknown
209Unknown
210Unknown
211Unknown
212Unknown
213Unknown
214Unknown
215Unknown
216Unknown
217Unknown
218Unknown
219Open Bracket
220Back Slash
221Close Bracket / å
222Single Quote / ø / ä
223`
224Left or Right ⌘ Key (Firefox)
225Alt Gr
226Left Back Slash
227Unknown
228Unknown
229Unknown
230GNOME Compose Key
231ç
232Unknown
233XF86 Forward
234XF86 Back
235Non-conversion
236Unknown
237Unknown
238Unknown
239Unknown
240Alphanumeric
241Unknown
242Hiragana / Katakana
243Half-width / Full-width
244Kanji
245Unknown
246Unknown
247Unknown
248Unknown
249Unknown
250Unknown
251Unlock Trackpad (Chrome / Edge)
252Unknown
253Unknown
254Unknown
255Toggle Touchpad

If you identify an unknown Key Code, send me an email — it's in my CV.