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 |
33 | Insert |
45 | /? | 191 |
Enter/↩︎ | 13 | PgDn |
34 | Delete |
46 | `~ | 192 |
Shift/⇧ | 16 | End |
35 | Num Lock |
144 | [{ | 219 |
Ctrl | 17 | Home |
36 | ;: | 186(Chrome) 59(Firefox) | |\ | 220 |
Alt/⌥ Option | 18 | ← | 37 | =+ | 187(Chrome) 61(Firefox) | ]} | 221 |
CapsLock | 20 | ↑ | 38 | ,< | 188 | '" | 222 |
ASCII vs javascript event keycode | |||||||||||
Code | Name | Code | Name | Code | Name | Code | Name | Code | Name | Code | Name |
0 | NULL | 12 | FF | 24 | CAN | 36 | $ | 48 ~ 57 | 0 ~ 9 | 94 | ^ |
1 | SOH | 13 | CR | 25 | EM | 37 | % | 58 | : | 95 | _ |
2 | STX | 14 | SO | 26 | SUB | 38 | & | 59 | ; | 96 | ` |
3 | ETX | 15 | SI | 27 | Esc | 39 | ' | 60 | < | 97 ~ 122 | a ~ z |
4 | EOT | 16 | DLE | 28 | FS | 40 | ( | 61 | = | 123 | { |
5 | ENQ | 17 | DC1 | 29 | GS | 41 | ) | 62 | > | 124 | | |
6 | ACK | 18 | DC2 | 30 | RS | 42 | * | 63 | ? | 125 | } |
7 | BEL | 19 | DC3 | 31 | US | 43 | + | 64 | @ | 126 | ~ |
8 | ⌫ | 20 | DC4 | 32 | 44 | , | 65 ~ 90 | A ~ Z | 127 | ||
9 | ⇥ | 21 | NAK | 33 | ! | 45 | - | 91 | [ | ||
10 | LF | 22 | SYN | 34 | " | 46 | . | 92 | \ | ||
11 | VT | 23 | ETB | 35 | # | 47 | / | 93 | ] |
SINCE 2017 © markbuild