JavaScript Key codes

Find the javascript keycode associated with a character.

0   32 [Space]     96 Numpad 0 144 NumLock
1   33 Page Up 65 A 97 Numpad 1 145 Scroll Lock
2   34 Page Down 66 B 98 Numpad 2    
3   35 End 67 C 99 Numpad 3 186 Semi-colon ;
4   36 Home 68 D 100 Numpad 4 187 Equal sign =
5   37 Left Arrow 69 E 101 Numpad 5 188 Comma
6   38 Up Arrow 70 F 102 Numpad 6 189 Dash
7   39 Right Arrow 71 G 103 Numpad 7 190 Period
8 Backspace 40 Down arrow 72 H 104 Numpad 8 191 Forward slash /
9 TAB     73 I 105 Numpad 9 192 grave accent `
10       74 J 106 Multiply *    
11       75 K 107 Add + 219 Open bracket (
12   44 PrtScr 76 L     220 Backslash \
13 Carriage Return 45 Insert 77 M 109 Subtract - 221 Close braket
14   46 delete 78 N 110 Decimal point 222 Single quote '
15       79 O 111 Divide /    
16 Shift 48 0 80 P 112 F1 224 Command ⌘
17 Ctrl 49 1 81 Q 113 F2    
18 Alt 50 2 82 R 114 F3    
19 Pause/Break 51 3 83 S 115 F4    
20 Caps Lock 52 4 84 T 116 F5    
21   53 5 85 U 117 F6    
22   54 6 86 V 118 F7    
23   55 7 87 W 119 F8    
24   56 8 88 X 120 F9    
25   57 9 89 Y 121 F10    
26       90 Z 122 F11    
27 ESC (Escape)     91 Left Window key 123 F12    
28       92 Right Window key        
29       93 Select key        

Note that although there is some similarity with ASCII/Unicode many of the javaScript Keycodes are different.

“Surround yourself with people who believe in you” ~ Brian Koslow

Related:

ASCII Table
Hex to Decimal conversion
Keycode.info


Copyright © Emw3.com 2013-2018
Some rights reserved