JavaScript event keycodes

Press any key :)
Number and letter keys
Key Value Key Value Key Value Key Value
A 65 J 74 S 83 1 49
B 66 K 75 T 84 2 50
C 67 L 76 U 85 3 51
D 68 M 77 V 86 4 52
E 69 N 78 W 87 5 53
F 70 O 79 X 88 6 54
G 71 P 80 Y 89 7 55
H 72 Q 81 Z 90 8 56
I 73 R 82 0 48 9 57

Other keys
Key Value Key Value Key Value Key Value
BackSpace/ 8 Esc 27 39 -_ 189(Chrome) 173(Firefox)
Tab/ 9     32 40 .> 190
/ ⊞ 91 Firefox⌘ 224
Chrome(L⌘ 91 R⌘ 93)
PgUp Mac 33 Insert Mac 45 /? 191
Enter/↩︎ 13 PgDn Mac 34 Delete Mac 46 `~ 192
Shift/ 16 End Mac 35 Num Lock Mac 144 [{ 219
Ctrl 17 Home Mac 36 ;: 186(Chrome) 59(Firefox) |\ 220
Alt/⌥ Option 18 37 =+ 187(Chrome) 61(Firefox) ]} 221
CapsLock 20 38 ,< 188 '" 222

ASCII compare with keycode ☀️☀️ 👴 🇭🇰
Code Name Code Name Code Name Code Name Code Name Code Name
0 NULL 1 SOH 2 STX 3 ETX 4 EOT 5 ENQ
6 ACK 7 BEL 8-9 10 LF 11 VT 12 FF
13 CR 14 SO 15 SI 16 DLE 17 DC1 18 DC2
19 DC3 20 DC4 21 NAK 22 SYN 23 ETB 24 CAN
25 EM 26 SUB 27 Esc 28 FS 29 GS 30 RS
31 US 32     33 ! 34 " 35 # 36 $
37 % 38 & 39 ' 40 ( 41 ) 42 *
43 + 44 , 45 - 46 . 47 / ☀️☀️48 ~ 57 0 ~ 9
58 : 59 ; 60 < 61 = 62 > 63 ?
64 @ 👴65 ~ 90 A ~ Z 91 [ 92 \ 93 ] 94 ^
95 _ 96 ` 🇭🇰97 ~ 122 a ~ z 123 { 124 | 125 }
126 ~ 127
'%'.charCodeAt(0) // 37
'A'.charCodeAt(0) // 65
'a'.charCodeAt(0) // 97
ESC
`
1
2
3
4
5
6
7
8
9
0
_
=
BACK
TAB
q
w
e
r
t
y
u
i
o
p
[
]
|
CAPS
a
s
d
f
g
h
j
k
l
;
'
ENTER
SHIFT
z
x
c
v
b
n
m
,
.
/
SHIFT
CTRL
ALT
ALT
CTRL

SINCE 2017 © markbuild