A list of keys and the JavaScript char codes they correspond to

A list of keys and the JavaScript char codes they correspond to

This table is especially useful for those who want to capture the key press event in the browser window. These are the char codes JavaScript uses, and the keys they bind to:

CharKey Name
8Backspace
9Tab
13Enter
16Shift
17 Ctrl
18 Alt
19 Pause
20 Caps Lock
27 Escape
33 Page Up
34 Page Down
35 End
36 Home
37 Arrow Left
38 Arrow Up
39 Arrow Right
40 Arrow Down
45Insert
46 Delete
48 0
49 1
50 2
51 3
52 4
53 5
54 6
55 7
56 8
57 9
65A
66B
67C
68D
69E
70F
71G
72H
73I
74J
75K
76L
77M
78N
79O
80P
81Q
82R
83S
84T
85U
86V
87W
88X
89 Y
90 Z
91 Left Windows
92 Right Windows
93 Context Menu
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 NumPad *
107 NumPad +
109 NumPad –
110 NumPad .
111 NumPad /
112F1
113F2
114F3
115F4
116F5
117F6
118F7
119F8
120F9
121F10
122F11
123F12
144 Num Lock
145 Scroll Lock
186 ;
187 =
188 ,
189
190 .
191 /
192 `
219 [
220 \
221 ]
222
Nathan Pakovskie is an esteemed senior developer and educator in the tech community, best known for his contributions to Geekpedia.com. With a passion for coding and a knack for simplifying complex tech concepts, Nathan has authored several popular tutorials on C# programming, ranging from basic operations to advanced coding techniques. His articles, often characterized by clarity and precision, serve as invaluable resources for both novice and experienced programmers. Beyond his technical expertise, Nathan is an advocate for continuous learning and enjoys exploring emerging technologies in AI and software development. When he’s not coding or writing, Nathan engages in mentoring upcoming developers, emphasizing the importance of both technical skills and creative problem-solving in the ever-evolving world of technology. Specialties: C# Programming, Technical Writing, Software Development, AI Technologies, Educational Outreach

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top