Keyboard Tester: Check Every Key and See Which One Is Pressed
This tests a physical keyboard. On a phone or tablet, connect one over Bluetooth or USB.
Which key is pressed
Lock keys: —
Combinations: do all keys arrive together
Pick a combination, then hold all of its keys.
Result
- Press a few keys and the result appears here.
Press any key: if it works, it lights up. Dark is held, green is tested, amber sent two presses, unchanged sent nothing. The panel under the picture names the key you are pressing.
What each colour means · ghosting · double typing · dead key · laptop keys · all key codes
The picture of your keyboard is the test: a key that never changes colour sent nothing. Pick the size you own, from a full board to 60%, ANSI or ISO, Windows or Mac, and take out any key your model lacks, so 100% means every key you have. The read-out names the pressed key with its code, keyCode, USB HID usage and scan code. The combinations show which keys get lost when held together, and the result at the end can be copied or downloaded as a log of every press.
Key presses are read locally in your browser and never sent to a server.
What the test shows and what it means
| You see | It means |
|---|---|
| The cap turns dark, then green | The key works: the press and the release both arrived. |
| Neither the cap nor the read-out changes | The press never reached the browser. Either the contact is dead, or it is one of the keys a page cannot see. Checks in order |
| The cap turns amber | One press arrived as two: a bouncing switch. Double presses |
| The cap stays dark after you let go | No release came. After 10 seconds the result lists the key as stuck: look for dirt under the cap. Checks in order |
| The right cap lights up but the wrong character appears | The keyboard is fine. The system uses another typing layout, and the test names it after a few letters. |
| A letter lights up a numpad code | Num Lock is on over the letters of a laptop keyboard. Laptop keyboards |
| A key goes missing only while others are held | A rollover limit or ghosting, not a dead key. Rollover |
| A key counts only when you hold it for a while | Filter Keys may be on in Windows: it drops brief presses on purpose. Turn it off |
A key does not work: checks in order
The free checks come first. The last two need the keyboard open, so do them only when the key fails on two computers.
| # | Check | What it rules out |
|---|---|---|
| 1 | Press it in this test, then in the BIOS setup or the boot menu | The browser and the system. If it works there, the switch is fine. |
| 2 | Hold the right Shift for eight seconds, or open Settings → Accessibility → Keyboard, and turn Filter Keys off | Presses dropped on purpose. The same page has Sticky Keys, which five presses of Shift turn on. |
| 3 | Plug the keyboard straight into the computer, without a hub or a dock; a wireless one: charge it and use the cable | A hub without enough power, a weak radio link. |
| 4 | Try the keyboard on another computer | Everything on the first computer. A key dead on both is dead. |
| 5 | Device Manager → Keyboards → Uninstall device, then restart: Windows installs the driver again | A broken driver. |
| 6 | Switch off, take the cap off where it is made to come off, blow the dirt out; on a MacBook tilt it to 75° and spray left to right, as Apple describes | Crumbs and hair under the cap. |
| 7 | Swap two switches on a hot-swap board and test again | If the fault moves with the switch, the switch is bad. If it stays, the board is. |
If the key is still dead, the switch or its trace on the board is. A hot-swap switch pulls out by hand and a soldered one needs an iron. On most laptops the whole keyboard is replaced.
Ghosting and rollover: which combinations fit
A keyboard in the basic USB mode reports one byte of modifiers and up to six other keys, so Shift, Ctrl, Alt and Win are free and everything else counts. When more keys are down, the USB specification tells it to report an error in place of the keys. It allows the same for a set of keys the wiring cannot tell apart, which is why a simple board can lose the third key of one trio and report another trio in full.
The table counts the keys of each combination in the test. “Fits” means the report has room; the wiring can still drop one of them, and only holding the keys shows that. None of them uses Ctrl, because Ctrl+W closes the tab.
| Combination | Keys | Counted | 2-key rollover | 3-key | 6-key (USB) |
|---|---|---|---|---|---|
| Strafe and jump | W + A + Space | 3 | too many | fits | fits |
| Sprint and jump | Left Shift + W + D + Space | 3 | too many | fits | fits |
| Sprint, jump, reload | Left Shift + W + A + R + Space | 4 | too many | too many | fits |
| Move and lean | W + D + Q + E | 4 | too many | too many | fits |
| Arrows and Space | ↑ + ← + Space | 3 | too many | fits | fits |
| Arrows with Z, X | ↑ + → + Z + X | 4 | too many | too many | fits |
| Two players | W + D + ↑ + → | 4 | too many | too many | fits |
| Rhythm game, 4 keys | D + F + J + K | 4 | too many | too many | fits |
| Rhythm game, 7 keys | S + D + F + Space + J + K + L | 7 | too many | too many | too many |
| Six letters | A + S + D + J + K + L | 6 | too many | too many | fits |
| Nine-key block | Q + W + E + A + S + D + Z + X + C | 9 | too many | too many | too many |
Only rhythm game, 7 keys and nine-key block need more than six, so they are the ones that separate a six-key board from one with N-key rollover. If yours stops at six but is sold as NKRO, look for an NKRO switch in its software; keyboards with QMK firmware can toggle it.
Double presses: which threshold to choose
The test compares the time between a release and the next press of the same key with the threshold. A finger can come under it only by tapping this fast:
| Threshold | Key held 50 ms | Key held 70 ms | Key held 100 ms |
|---|---|---|---|
| 30 ms | 12.5 presses/s | 10.0 presses/s | 7.7 presses/s |
| 50 ms | 10.0 presses/s | 8.3 presses/s | 6.7 presses/s |
| 80 ms | 7.7 presses/s | 6.7 presses/s | 5.6 presses/s |
50 ms suits ordinary typing. Choose 30 ms when you tap one key quickly on purpose, 80 ms to catch slower bounces on a worn key while pressing it calmly. The count is recalculated for presses already made. Tap a suspect key 30 times: one amber hit can be a slip of the finger, several mean a worn or dirty switch. Firmware removes the shortest bounces before they reach the computer: QMK waits 5 ms by default, so what the test sees is what got past that filter. Your own tapping speed is easy to check in the click speed test.
Keys a web page cannot see, and how to test them
| Key | Why | How to test it |
|---|---|---|
| Fn | Usually handled inside the keyboard. The W3C key list says it “does not usually generate key events”. | Hold Fn and press a key with a second function, such as an arrow for Home or End. |
| PrtSc in Windows | The browser gets only the release. | The test counts the release, so the cap turns green when you let go. |
| Caps Lock on a Mac | macOS sends only the press, as a toggle. | The cap turns green at once and is never shown as held. |
| Win, Alt+Tab, Ctrl+W, Ctrl+T | The system or the browser acts on them first. | Press Full screen. Chrome and Edge can then hand most of them over; hold Esc for two seconds to leave. |
| Ctrl+Alt+Del | Windows gives it to no application. | Test the three keys one at a time. |
| Brightness, Wi-Fi and touchpad keys | Handled by the laptop firmware. | Watch whether the screen or the radio reacts. Volume and playback keys do arrive: see “Keys outside the picture”. |
On a laptop, letters that arrive as numpad codes mean Num Lock: press NumLk or Fn+NumLk; on keyboards without that label the maker puts it on another key. The test notices the codes and says so.
Keyboard sizes: how many keys to test
Counted from the layouts in the test. Fn is not included, so an “84-key” 75% board has 83 keys to test and a “68-key” 65% one has 67.
| Layout | ANSI | ISO | Mac | Missing against a full board |
|---|---|---|---|---|
| Full size (100%) | 104 | 105 | 102 | nothing |
| Tenkeyless (80%) | 87 | 88 | 85 | numpad 17 |
| Laptop | 78 | 79 | 76 | numpad 17, navigation 7, modifier 2 |
| 75% | 83 | 84 | 82 | numpad 17, modifier 2, navigation 2 |
| 65% | 67 | 68 | 67 | numpad 17, F-row 12, navigation 5, modifier 2, symbol 1 |
| 60% | 61 | 62 | 60 | numpad 17, navigation 13, F-row 12, symbol 1 |
All key codes: code, keyCode, USB HID and scan code
132 keys, the same numbers the read-out shows. The key column is the US layout without Shift. keyCode is what Chrome, Edge and Safari report; Firefox differs where noted. Scan codes are Set 1 make codes as Microsoft lists them, so A is 1E and the numpad Enter (E0 1C) is the main Enter (1C) with the E0 prefix.
Letters (26)
| Key | code | key | keyCode | USB HID | Scan code |
|---|---|---|---|---|---|
| A | KeyA | a | 65 | 0x04 | 1E |
| B | KeyB | b | 66 | 0x05 | 30 |
| C | KeyC | c | 67 | 0x06 | 2E |
| D | KeyD | d | 68 | 0x07 | 20 |
| E | KeyE | e | 69 | 0x08 | 12 |
| F | KeyF | f | 70 | 0x09 | 21 |
| G | KeyG | g | 71 | 0x0A | 22 |
| H | KeyH | h | 72 | 0x0B | 23 |
| I | KeyI | i | 73 | 0x0C | 17 |
| J | KeyJ | j | 74 | 0x0D | 24 |
| K | KeyK | k | 75 | 0x0E | 25 |
| L | KeyL | l | 76 | 0x0F | 26 |
| M | KeyM | m | 77 | 0x10 | 32 |
| N | KeyN | n | 78 | 0x11 | 31 |
| O | KeyO | o | 79 | 0x12 | 18 |
| P | KeyP | p | 80 | 0x13 | 19 |
| Q | KeyQ | q | 81 | 0x14 | 10 |
| R | KeyR | r | 82 | 0x15 | 13 |
| S | KeyS | s | 83 | 0x16 | 1F |
| T | KeyT | t | 84 | 0x17 | 14 |
| U | KeyU | u | 85 | 0x18 | 16 |
| V | KeyV | v | 86 | 0x19 | 2F |
| W | KeyW | w | 87 | 0x1A | 11 |
| X | KeyX | x | 88 | 0x1B | 2D |
| Y | KeyY | y | 89 | 0x1C | 15 |
| Z | KeyZ | z | 90 | 0x1D | 2C |
Digits (10)
| Key | code | key | keyCode | USB HID | Scan code |
|---|---|---|---|---|---|
| 0 | Digit0 | 0 | 48 | 0x27 | 0B |
| 1 | Digit1 | 1 | 49 | 0x1E | 02 |
| 2 | Digit2 | 2 | 50 | 0x1F | 03 |
| 3 | Digit3 | 3 | 51 | 0x20 | 04 |
| 4 | Digit4 | 4 | 52 | 0x21 | 05 |
| 5 | Digit5 | 5 | 53 | 0x22 | 06 |
| 6 | Digit6 | 6 | 54 | 0x23 | 07 |
| 7 | Digit7 | 7 | 55 | 0x24 | 08 |
| 8 | Digit8 | 8 | 56 | 0x25 | 09 |
| 9 | Digit9 | 9 | 57 | 0x26 | 0A |
Symbols (12)
| Key | code | key | keyCode | USB HID | Scan code |
|---|---|---|---|---|---|
| ` | Backquote | ` | 192 | 0x35 | 29 |
| - | Minus | - | 189 (Firefox 173) | 0x2D | 0C |
| = | Equal | = | 187 (Firefox 61) | 0x2E | 0D |
| [ | BracketLeft | [ | 219 | 0x2F | 1A |
| ] | BracketRight | ] | 221 | 0x30 | 1B |
| \ | Backslash | \ | 220 | 0x31 | 2B |
| ; | Semicolon | ; | 186 (Firefox 59) | 0x33 | 27 |
| ' | Quote | ' | 222 | 0x34 | 28 |
| Comma | Comma | , | 188 | 0x36 | 33 |
| Period | Period | . | 190 | 0x37 | 34 |
| / | Slash | / | 191 | 0x38 | 35 |
| \ (ISO) | IntlBackslash | \ | 226 | 0x64 | 56 |
Enter, Esc, Tab, Space, Backspace, Caps Lock (6)
| Key | code | key | keyCode | USB HID | Scan code |
|---|---|---|---|---|---|
| Enter | Enter | Enter | 13 | 0x28 | 1C |
| Esc | Escape | Escape | 27 | 0x29 | 01 |
| Backspace | Backspace | Backspace | 8 | 0x2A | 0E |
| Tab | Tab | Tab | 9 | 0x2B | 0F |
| Space | Space | space | 32 | 0x2C | 39 |
| Caps | CapsLock | CapsLock | 20 | 0x39 | 3A |
Shift, Ctrl, Alt, Win and Menu (9)
| Key | code | key | keyCode | USB HID | Scan code |
|---|---|---|---|---|---|
| Left Shift | ShiftLeft | Shift | 16 | 0xE1 | 2A |
| Right Shift | ShiftRight | Shift | 16 | 0xE5 | 36 |
| Left Ctrl | ControlLeft | Control | 17 | 0xE0 | 1D |
| Right Ctrl | ControlRight | Control | 17 | 0xE4 | E0 1D |
| Left Alt | AltLeft | Alt | 18 | 0xE2 | 38 |
| Right Alt | AltRight | Alt | 18 | 0xE6 | E0 38 |
| Left Win | MetaLeft | Meta | 91 | 0xE3 | E0 5B |
| Right Win | MetaRight | Meta | 92 | 0xE7 | E0 5C |
| Menu | ContextMenu | ContextMenu | 93 | 0x65 | E0 5D |
Arrows and navigation keys (13)
| Key | code | key | keyCode | USB HID | Scan code |
|---|---|---|---|---|---|
| PrtSc | PrintScreen | PrintScreen | 44 | 0x46 | E0 37 |
| ScrLk | ScrollLock | ScrollLock | 145 | 0x47 | 46 |
| Pause | Pause | Pause | 19 | 0x48 | E1 1D 45 |
| Ins | Insert | Insert | 45 | 0x49 | E0 52 |
| Home | Home | Home | 36 | 0x4A | E0 47 |
| PgUp | PageUp | PageUp | 33 | 0x4B | E0 49 |
| Del | Delete | Delete | 46 | 0x4C | E0 53 |
| End | End | End | 35 | 0x4D | E0 4F |
| PgDn | PageDown | PageDown | 34 | 0x4E | E0 51 |
| ↑ | ArrowUp | ArrowUp | 38 | 0x52 | E0 48 |
| ← | ArrowLeft | ArrowLeft | 37 | 0x50 | E0 4B |
| ↓ | ArrowDown | ArrowDown | 40 | 0x51 | E0 50 |
| → | ArrowRight | ArrowRight | 39 | 0x4F | E0 4D |
F1–F24 (24)
| Key | code | key | keyCode | USB HID | Scan code |
|---|---|---|---|---|---|
| F1 | F1 | F1 | 112 | 0x3A | 3B |
| F2 | F2 | F2 | 113 | 0x3B | 3C |
| F3 | F3 | F3 | 114 | 0x3C | 3D |
| F4 | F4 | F4 | 115 | 0x3D | 3E |
| F5 | F5 | F5 | 116 | 0x3E | 3F |
| F6 | F6 | F6 | 117 | 0x3F | 40 |
| F7 | F7 | F7 | 118 | 0x40 | 41 |
| F8 | F8 | F8 | 119 | 0x41 | 42 |
| F9 | F9 | F9 | 120 | 0x42 | 43 |
| F10 | F10 | F10 | 121 | 0x43 | 44 |
| F11 | F11 | F11 | 122 | 0x44 | 57 |
| F12 | F12 | F12 | 123 | 0x45 | 58 |
| F13 | F13 | F13 | 124 | 0x68 | 64 |
| F14 | F14 | F14 | 125 | 0x69 | 65 |
| F15 | F15 | F15 | 126 | 0x6A | 66 |
| F16 | F16 | F16 | 127 | 0x6B | 67 |
| F17 | F17 | F17 | 128 | 0x6C | 68 |
| F18 | F18 | F18 | 129 | 0x6D | 69 |
| F19 | F19 | F19 | 130 | 0x6E | 6A |
| F20 | F20 | F20 | 131 | 0x6F | 6B |
| F21 | F21 | F21 | 132 | 0x70 | 6C |
| F22 | F22 | F22 | 133 | 0x71 | 6D |
| F23 | F23 | F23 | 134 | 0x72 | 6E |
| F24 | F24 | F24 | 135 | 0x73 | 76 |
Numpad (17)
| Key | code | key | keyCode | USB HID | Scan code |
|---|---|---|---|---|---|
| Num Lock | NumLock | NumLock | 144 | 0x53 | 45 |
| Num / | NumpadDivide | / | 111 | 0x54 | E0 35 |
| Num * | NumpadMultiply | * | 106 | 0x55 | 37 |
| Num - | NumpadSubtract | - | 109 | 0x56 | 4A |
| Num + | NumpadAdd | + | 107 | 0x57 | 4E |
| Num Enter | NumpadEnter | Enter | 13 | 0x58 | E0 1C |
| Num . | NumpadDecimal | . | 110 | 0x63 | 53 |
| Num 0 | Numpad0 | 0 | 96 | 0x62 | 52 |
| Num 1 | Numpad1 | 1 | 97 | 0x59 | 4F |
| Num 2 | Numpad2 | 2 | 98 | 0x5A | 50 |
| Num 3 | Numpad3 | 3 | 99 | 0x5B | 51 |
| Num 4 | Numpad4 | 4 | 100 | 0x5C | 4B |
| Num 5 | Numpad5 | 5 | 101 | 0x5D | 4C |
| Num 6 | Numpad6 | 6 | 102 | 0x5E | 4D |
| Num 7 | Numpad7 | 7 | 103 | 0x5F | 47 |
| Num 8 | Numpad8 | 8 | 104 | 0x60 | 48 |
| Num 9 | Numpad9 | 9 | 105 | 0x61 | 49 |
Media and browser keys (15)
| Key | code | key | keyCode | USB HID | Scan code |
|---|---|---|---|---|---|
| Audio Volume Mute | AudioVolumeMute | AudioVolumeMute | 173 (Firefox 181) | 0x0C/0xE2 | E0 20 |
| Audio Volume Down | AudioVolumeDown | AudioVolumeDown | 174 (Firefox 182) | 0x0C/0xEA | E0 2E |
| Audio Volume Up | AudioVolumeUp | AudioVolumeUp | 175 (Firefox 183) | 0x0C/0xE9 | E0 30 |
| Media Track Next | MediaTrackNext | MediaTrackNext | 176 | 0x0C/0xB5 | E0 19 |
| Media Track Previous | MediaTrackPrevious | MediaTrackPrevious | 177 | 0x0C/0xB6 | E0 10 |
| Media Stop | MediaStop | MediaStop | 178 | 0x0C/0xB7 | E0 24 |
| Media Play Pause | MediaPlayPause | MediaPlayPause | 179 | 0x0C/0xCD | E0 22 |
| Launch Mail | LaunchMail | LaunchMail | 180 | 0x0C/0x018A | E0 6C |
| Launch App 2 | LaunchApp2 | LaunchApplication2 | 183 | 0x0C/0x0192 | E0 21 |
| Browser Back | BrowserBack | BrowserBack | 166 | 0x0C/0x0224 | E0 6A |
| Browser Forward | BrowserForward | BrowserForward | 167 | 0x0C/0x0225 | E0 69 |
| Browser Refresh | BrowserRefresh | BrowserRefresh | 168 | 0x0C/0x0227 | E0 67 |
| Browser Search | BrowserSearch | BrowserSearch | 170 | 0x0C/0x0221 | E0 65 |
| Browser Favorites | BrowserFavorites | BrowserFavorites | 171 | 0x0C/0x022A | E0 66 |
| Browser Home | BrowserHome | BrowserHome | 172 | 0x0C/0x0223 | E0 32 |
How the test works, and its limits
The page listens to keydown and keyup events and matches them to the picture by code, which depends on the position of the key and not on the language. Held time, the gap before a second press and the repeat speed come from the event timestamps. Browsers round those: Chrome to 0.1 ms, Firefox and Safari to 1 ms. The thresholds were chosen for this test; there is no standard for them. “Stuck” means held for 10 seconds. The Left Ctrl that Windows adds in front of AltGr is ignored.
- Microsoft: scan codes and HID usages
- USB HID 1.11, appendices C and F: six-key report, phantom keys, repeat
- W3C: KeyboardEvent code values
- W3C: KeyboardEvent key values (Fn)
- MDN: keyCode, with the Firefox numbers and PrintScreen
- MDN: KeyboardEvent (Caps Lock on macOS)
- MDN: precision of event times
- Chrome: Keyboard Lock
- WICG: Keyboard Lock, Ctrl+Alt+Del
- QMK: switching NKRO on and off
- Lenovo: Num Lock on laptops
- QMK firmware: debounce, 5 ms by default
- Microsoft: repeat delay and speed
- Microsoft: Filter Keys and Sticky Keys shortcuts
- Microsoft: mouse and keyboard problems in Windows
- Apple: cleaning the keyboard of a MacBook
How it works
- 1 Pick your keyboard and press keys Choose the size, ANSI or ISO, and Windows or Mac under the picture, then press every key once. If the keys stop counting, focus is on a button or a list: click the picture.
- 2 Take out the keys you do not have Press “Remove keys I lack” and click them on the picture, or press everything else first and then “I do not have these keys”. The choice is remembered for that layout.
- 3 Hold combinations Pick a combination and hold all of its keys. The line under the buttons says which key is missing and whether a key you are not holding came too.
- 4 Read the result It lists keys that fired twice, keys that stay down, combinations that lost a key and how many keys are left. Copy it for a seller or a repair shop, or download the CSV log with the time of every press.
Frequently asked questions
- How can I see which key is being pressed right now?
- Press it with this page open: the panel under the picture names it. “Held now” lists every key that is down at this moment, so a key that nobody is touching is easy to spot.
- What is the difference between code, key and keyCode?
- code is the position on the board: the key right of Caps Lock is KeyA even on a French AZERTY keyboard, where it types q. key is the character or name that position produces in the current layout. keyCode is an old number kept for compatibility; browsers do not agree on it for every key, so new code should use the first two.
- How do I test a laptop keyboard?
- Choose Laptop, ISO if Enter is tall, and Mac for a MacBook. Press F1–F12 on their own and with Fn, since many laptops put volume and brightness on the bare keys. Brightness and Wi-Fi keys never reach a web page. Remove any key your model does not have and the rest can reach 100%.
- Why does my laptop type numbers instead of letters?
- Num Lock is on over the letters: a key such as J arrives as Numpad1. “Keys a web page cannot see” says how to turn it off.
- How do I test a 75% or 65% keyboard?
- Choose the size under the picture. Makers place the right-hand column differently, so remove the keys you lack; a key outside the picture is listed separately when you press it.
- Is slow key repeat a keyboard fault?
- No. The USB specification leaves the delay and the repeat speed to the computer. Hold a letter for two seconds and the test shows both. Windows lets you set the delay between about 250 ms and 1 second, and the speed between about 2.5 and 30 characters per second, with up to 20% of variation.
- Can this page measure polling rate or input lag?
- No web page can. It sees an event after the keyboard, USB and the system have handled it, so the part before that is invisible. The times shown here are good for comparing presses with each other: how long a key was held, and how soon the next press came.
- Can I test the on-screen keyboard of a phone?
- No, it sends text rather than keys. A physical keyboard connected to the phone or tablet over Bluetooth or USB can be tested in the same way as on a computer.