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