Keyboard

Keyboard Test

Press any key on your physical keyboard — it lights up here labeled for the layout you picked, so you can confirm the right character reaches the browser. Keys stay green once tested, so you can see what's left to check.

Test area

What you've typed
The fn key is dimmed because macOS and most laptop firmware handle it before the browser ever sees it.

What this actually tests

Every key sends a physical position (event.code, like KeyQ) and, separately, the character your OS layout maps it to (event.key). This tool lights up the physical position and relabels it for the layout you pick — so you can tell a genuinely dead key apart from a layout mismatch, which is the single most common reason "half my keyboard" seems broken.

The six stages a keypress passes through, from the switch contacts to the browser KeyboardEvent this page reads, with the failure that belongs to each stage A six-step vertical pipeline. One: the switch closes and its contacts bounce for one to five milliseconds, which when worn causes key chatter. Two: the controller scans the matrix row by row at roughly one kilohertz, which without diodes produces phantom keys. Three: firmware debounce ignores state changes for about five milliseconds, which if set too high swallows fast presses. Four: the USB HID report carries six keys in boot protocol or a full bitmap in NKRO mode, so a boot-protocol board can never report more than six keys at once. Five: the operating system applies the layout map, repeat rate and accessibility filters, which is where wrong characters and dropped presses come from. Six: the browser fires a KeyboardEvent with a code for the physical key and a key for the character, and this is the layer the tester on this page observes. PHYSICAL WHAT GOES WRONG HERE 1 Switch closes Contacts physically bounce for 1–5 ms Worn contacts bounce past the debounce window → key chatter 2 Controller scans the matrix Each row energised in turn, ~1 kHz sweep No diodes → phantom keys on L-shaped 3-key combinations 3 Firmware debounce State changes ignored ~5 ms after an edge Set too high → genuinely fast presses get swallowed 4 USB HID report Boot protocol: 6 keys max; NKRO uses a bitmap Boot-protocol board → only 6 simultaneous keys ever arrive 5 Operating system Layout map, repeat rate, Filter & Sticky Keys Wrong layout → wrong character; Filter Keys → presses dropped 6 Browser KeyboardEvent event.code = physical key; event.key = character Nothing — this is the layer the tester on this page reads
Why the layer matters more than the symptom. A keypress is not one event, it is six handoffs, and each one has its own way of failing. That is why "my key does not work" has no single fix: a dead key at stage 1 is a cleaning or soldering job, a phantom key at stage 2 is a limit of how the board is wired, a six-key ceiling at stage 4 is the USB boot protocol doing exactly what it was designed to do, and a wrong character at stage 5 is a layout setting that takes ten seconds to change. A browser-based tester reads stage 6, the last one. That is a genuine limitation worth stating plainly: it cannot see inside your keyboard. What it can do is tell you whether a press survived all six handoffs — and because event.code reports the physical key while event.key reports the character, comparing the two separates a hardware fault from a layout problem without opening anything.

If a key doesn't respond

  1. Confirm your OS keyboard layout matches your physical keyboard — a mismatch, not a dead key, is the most common cause.
  2. Check for debris under the keycap; compressed air clears most of it.
  3. Test on another computer or via a USB keyboard to rule out the port or driver.
  4. For a mechanical board with custom firmware, reset to factory defaults before assuming hardware failure.

Want to know your keyboard's rollover limit?

Ghosting / NKRO test

FAQ

Why does a key show the wrong letter when I press it?

The physical key position lights up correctly, but the label shown depends on the character layout you've selected (QWERTY, QWERTZ, AZERTY, or Dvorak). If your OS keyboard layout doesn't match what's picked here, the letter printed on your keycap and the letter this tool expects at that position will differ — that's a layout mismatch, not a broken key.

Does this work with a non-US physical keyboard?

Yes — the tool reads the physical key position (event.code) regardless of your keyboard's printed layout, then relabels each position for whichever character layout you select. Number, punctuation, and a few edge keys can sit in slightly different physical spots on ISO versus ANSI boards, which is why some layouts show minor differences in key shape.

Can this test a laptop's built-in keyboard the same way?

Yes, it works identically on a laptop's internal keyboard — the browser receives the same kind of key events either way. The one exception is the Fn key, which most laptop firmware and macOS intercept before it ever reaches the browser, so it's shown dimmed rather than as untestable.

Related tools