Keyboard KeyCode Reference
Keyboard KeyCode Reference with local browser interaction and inspection.
Keyboard KeyCode Reference
Look up common legacy KeyCodes for function, letter, number, control and numpad keys, or enable live event inspection. KeyCode is deprecated and values vary by system/layout; prefer key/code in new projects.
106 rows; common legacy values are illustrative, actual events take precedence. Numpad Enter is commonly 13; 108 is the legacy Separator value.
| Key | code | KeyCode | Group |
|---|---|---|---|
| F1 | F1 | 112 | function |
| F2 | F2 | 113 | function |
| F3 | F3 | 114 | function |
| F4 | F4 | 115 | function |
| F5 | F5 | 116 | function |
| F6 | F6 | 117 | function |
| F7 | F7 | 118 | function |
| F8 | F8 | 119 | function |
| F9 | F9 | 120 | function |
| F10 | F10 | 121 | function |
| F11 | F11 | 122 | function |
| F12 | F12 | 123 | function |
| 0 | Digit0 | 48 | number |
| 1 | Digit1 | 49 | number |
| 2 | Digit2 | 50 | number |
| 3 | Digit3 | 51 | number |
| 4 | Digit4 | 52 | number |
| 5 | Digit5 | 53 | number |
| 6 | Digit6 | 54 | number |
| 7 | Digit7 | 55 | number |
| 8 | Digit8 | 56 | number |
| 9 | Digit9 | 57 | number |
| A | KeyA | 65 | letter |
| B | KeyB | 66 | letter |
| C | KeyC | 67 | letter |
| D | KeyD | 68 | letter |
| E | KeyE | 69 | letter |
| F | KeyF | 70 | letter |
| G | KeyG | 71 | letter |
| H | KeyH | 72 | letter |
| I | KeyI | 73 | letter |
| J | KeyJ | 74 | letter |
| K | KeyK | 75 | letter |
| L | KeyL | 76 | letter |
| M | KeyM | 77 | letter |
| N | KeyN | 78 | letter |
| O | KeyO | 79 | letter |
| P | KeyP | 80 | letter |
| Q | KeyQ | 81 | letter |
| R | KeyR | 82 | letter |
| S | KeyS | 83 | letter |
| T | KeyT | 84 | letter |
| U | KeyU | 85 | letter |
| V | KeyV | 86 | letter |
| W | KeyW | 87 | letter |
| X | KeyX | 88 | letter |
| Y | KeyY | 89 | letter |
| Z | KeyZ | 90 | letter |
| Backspace | Backspace | 8 | control |
| Tab | Tab | 9 | control |
| Clear | Clear | 12 | control |
| Enter | Enter | 13 | control |
| Shift (L) | ShiftLeft | 16 | control |
| Shift (R) | ShiftRight | 16 | control |
| Ctrl (L) | ControlLeft | 17 | control |
| Ctrl (R) | ControlRight | 17 | control |
| Alt (L) | AltLeft | 18 | control |
| Alt (R) | AltRight | 18 | control |
| Pause | Pause | 19 | control |
| Caps Lock | CapsLock | 20 | control |
| Esc | Escape | 27 | control |
| Space | Space | 32 | control |
| Page Up | PageUp | 33 | control |
| Page Down | PageDown | 34 | control |
| End | End | 35 | control |
| Home | Home | 36 | control |
| ← | ArrowLeft | 37 | control |
| ↑ | ArrowUp | 38 | control |
| → | ArrowRight | 39 | control |
| ↓ | ArrowDown | 40 | control |
| Print Screen | PrintScreen | 44 | control |
| Insert | Insert | 45 | control |
| Delete | Delete | 46 | control |
| Meta / Win / Cmd (L) | MetaLeft | 91 | control |
| Meta / Win / Cmd (R) | MetaRight | 92 | control |
| Menu | ContextMenu | 93 | control |
| Num Lock | NumLock | 144 | control |
| Scroll Lock | ScrollLock | 145 | control |
| ; : | Semicolon | 186 | control |
| = + | Equal | 187 | control |
| , < | Comma | 188 | control |
| - _ | Minus | 189 | control |
| . > | Period | 190 | control |
| / ? | Slash | 191 | control |
| ` ~ | Backquote | 192 | control |
| [ { | BracketLeft | 219 | control |
| \ | | Backslash | 220 | control |
| ] } | BracketRight | 221 | control |
| ' " | Quote | 222 | control |
| Num 0 | Numpad0 | 96 | numpad |
| Num 1 | Numpad1 | 97 | numpad |
| Num 2 | Numpad2 | 98 | numpad |
| Num 3 | Numpad3 | 99 | numpad |
| Num 4 | Numpad4 | 100 | numpad |
| Num 5 | Numpad5 | 101 | numpad |
| Num 6 | Numpad6 | 102 | numpad |
| Num 7 | Numpad7 | 103 | numpad |
| Num 8 | Numpad8 | 104 | numpad |
| Num 9 | Numpad9 | 105 | numpad |
| Num * | NumpadMultiply | 106 | numpad |
| Num + | NumpadAdd | 107 | numpad |
| Num Separator | NumpadComma | 108 | numpad |
| Num Enter | NumpadEnter | 13 | numpad |
| Num - | NumpadSubtract | 109 | numpad |
| Num . | NumpadDecimal | 110 | numpad |
| Num / | NumpadDivide | 111 | numpad |
Start a new test, then press keys here
Waiting for a key event
Focus loss or stopping releases displayed states as blur/stop; these are not actual keyup events. OS shortcuts, Fn, some media keys and mobile keyboards may not emit complete events. IME composition retains isComposing; this tool does not certify that all keys work.
Only preparation/export actions are reported; keys and records are not uploaded. Stopping retains results; a new test or leaving clears them.
Processed content stays in this page’s memory and cannot be recovered after clearing or closing.
About this tool
Look up common legacy KeyCodes for function, letter, number, control and numpad keys, or enable live event inspection. KeyCode is deprecated and values vary by system/layout; prefer key/code in new projects. Only preparation/export actions are reported; event details, keys, coordinates and observations are not uploaded.
How to use
- Start a new test and use the keyboard or mouse in the test area; KeyCode also provides direct lookup.
- Inspect held states, counts and events; focus loss releases displayed states.
- Stop and copy/download event JSON; KeyCode lookup also exports JSON/CSV. A new test or leaving clears records.
Frequently asked questions
Does this automatically certify hardware?
No. Keyboard/mouse tools show events received by the browser; OS shortcuts, Fn and browser gestures may be intercepted. Screen inspection is manual. The 10-second preparation limit does not limit your testing session; closing the page ends it.
Discussion & comments
Share your experience and discover more ways to use this tool.
Loading comments…