Press Any Keyboard Key


This web page will display Javascript Keycodes as you press keys on your keyboard. This is one of simplest and easy to use javascript key code tool which will respond to the key pressed and returns the JavaScript 'on-key pressed' key code. Key code is nothing more than numerical number which represents which key on your keyboard has been pressed and you can execute a function or certain piece of code if it matches the code. For example, if you want to run some code when enter key is pressed then you can use if statement in javascript and compare the javascript event key code with 13 (enter key code).

Javascript Keycodes Chart

KeycodeKey
3break
8backspace / delete
9tab
12clear
13enter
16shift
17ctrl
18alt
19pause/break
20caps lock
21hangul
25hanja
27escape
28conversion
29non-conversion
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:
59semicolon (firefox), equals
60<
61equals (firefox)
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 ⌘
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
111divide
112f1
113f2
114f3
115f4
116f5
117f6
118f7
119f8
120f9
121f10
122f11
123f12
124f13
125f14
126f15
127f16
128f17
129f18
130f19
131f20
132f21
133f22
134f23
135f24
144num lock
145scroll lock
160^
161!
163#
164$
165ù
166page backward
167page forward
168refresh
169closing paren (AZERTY)
170*
171~ + * key
172home key
173minus (firefox), mute/unmute
174decrease volume level
175increase volume level
176next
177previous
178stop
179play/pause
180e-mail
181mute/unmute (firefox)
182decrease volume level (firefox)
183increase volume level (firefox)
186semi-colon / ñ
187equal sign
188comma
189dash
190period
191forward slash / ç
192grave accent / ñ / æ / ö
193?, / or °
194numpad period (chrome)
219open bracket
220back slash
221close bracket / å
222single quote / ø / ä
223`
224left or right ⌘ key (firefox)
225altgr
226< /git >, left back slash
230GNOME Compose Key
231ç
233XF86Forward
234XF86Back
240alphanumeric
242hiragana/katakana
243half-width/full-width
244kanji
255toggle touchpad

Disclaimer:We make a great effort in making sure that conversion is as accurate as possible, but we cannot guarantee that. Before using any of the conversion tools or data, you must validate its correctness with an authority.

Disclaimer | TOS | About | Privacy

Copyright@2024