Skip to main content

Keyboard Test

Free online keyboard test — press every key and watch it light up, measure n-key rollover, spot chatter and ghosting, and read the exact key code your browser receives. No install.

Keys are captured only while the test is running. Press Escape to stop at any time.

—

Last key —
Key code —
Held now —
Max rollover —

Key event log
  1. No keys captured yet.
  • Works in Chrome, Edge, Firefox and Safari
  • No permission prompt — key events need no access
  • Nothing you type is logged or uploaded
  • Laptop, mechanical, wireless and Bluetooth

How to test your keyboard: select Start keyboard test above, then press every key one at a time. Each key turns green once it registers, so gaps in your coverage are visible at a glance. Hold several keys at once to measure rollover. Press Escape to stop. If a key never lights up, the causes are covered below.

Test the rest of your setup

How to use this keyboard test

Click Start keyboard test above and press every key on your keyboard one at a time. Each key turns green once it registers, so you can see at a glance which keys work and which don’t. The readout shows the last key pressed, its KeyboardEvent.code value, how many keys you’re holding right now, and the maximum number of simultaneous keys the browser detected during the session — that’s your n-key rollover ceiling.

For a thorough test, work through the keyboard left to right, row by row. Don’t forget the function row, the modifiers (Shift, Ctrl, Alt, Win/Cmd), the arrow cluster, and the navigation block (Insert, Home, Page Up, Delete, End, Page Down). When every key is green, your keyboard hardware is reporting cleanly to the browser.

To check for ghosting or rollover problems, hold three or more keys at the same time and watch the Held now counter. Cheap membrane keyboards often max out at two or three simultaneous keys; gaming keyboards usually hit six or claim full n-key rollover.

What this keyboard test actually checks

Every physical key

Letters, numbers, function row, modifiers, arrows, navigation cluster and numpad.

Stuck or dead keys

A key that never lights green has a hardware or driver problem.

Key chatter

A flaky mechanical switch that triggers multiple events per single press — visible as duplicate rows in the event log.

N-key rollover

The maximum number of keys your keyboard can report simultaneously.

Ghosting

When one key press blocks another from registering — common on budget keyboards.

Modifier behaviour

Separate ShiftLeft / ShiftRight, ControlLeft / ControlRight and so on, so you can verify both sides work.

The code value tells you what the OS thinks the physical key is. If a key prints the wrong character, that’s a layout problem, not a hardware one. The test does not measure typing speed, key travel, actuation force, or input lag — those need a typing test or specialised hardware.

Why a key might not register

When a key fails this test, it’s one of four things, in roughly this order of likelihood:

  1. Dirt under the key. Crumbs, dust, or skin oil on the contacts is the most common cause, especially on laptops. Costs nothing to rule out before anything else.
  2. A driver or OS-level issue. Especially after a Windows update, a sleep/wake cycle, or a new USB device. The keyboard hardware is fine; the OS just isn’t listening.
  3. A connection problem. A worn-out USB cable, a flaky Bluetooth pairing, or a USB hub running out of power.
  4. Genuine hardware failure. A dead switch, a snapped flex cable inside the laptop, or liquid damage. This is the rarest case despite feeling like the obvious one.

Windows 10 / 11

  • Try a hard restart first. Hold the power button for 10 seconds to fully power-cycle. Many laptop keyboard issues clear here.
  • Reinstall the keyboard driver. Device Manager → Keyboards, right-click your keyboard, Uninstall device. Reboot — Windows reinstalls it automatically.
  • Disable Filter Keys and Sticky Keys. Settings → Accessibility → Keyboard. These features intentionally ignore or remap key presses.
  • Check the language layout. Press Win+Space to cycle layouts. A German layout on a US keyboard swaps Y and Z and moves punctuation.
  • Try a different USB port. Front-panel hubs on desktops are notorious. Plug directly into a rear motherboard port.

macOS

  • Reset the SMC (Intel Macs) or shut down fully and wait 30 seconds (Apple Silicon). Most laptop keyboard glitches resolve here.
  • Check for remapped modifiers. System Settings → Keyboard → Keyboard Shortcuts → Modifier Keys. A remapped Caps Lock or Option trips up muscle memory.
  • Disable Mouse Keys. System Settings → Accessibility → Pointer Control. When on, the numeric keys move the cursor instead of typing.
  • For external keyboards, unpair and re-pair Bluetooth, or try a different USB-C port or dongle.
  • Liquid spill? Power off immediately, flip the machine upside-down, and let it dry for 48 hours before powering on. The keyboard is replaceable; the logic board is not.

Linux

  • Test the raw event stream with xev (X11) or libinput debug-events (Wayland). If a key shows up there but not here, your browser or window manager is intercepting it.
  • Check the active keymap with setxkbmap -query. A wrong layout makes physical keys produce surprising characters.
  • Inspect dmesg for USB disconnect and reconnect lines if a key intermittently dies.

Testing mechanical keyboards: chatter, NKRO and ghosting

Mechanical switches develop two characteristic faults as they age. Chatter is when a single press registers as two or three events — you’ll see duplicate entries within about 10 ms in the event log above. Ghosting is when pressing two specific keys blocks a third from registering at all (holding W+A killing S, for instance). Watch for missing keys in the Held now counter when you press several at once.

N-key rollover is a marketing term for “every key reports independently, no matter how many you hold”. Anti-ghosting usually means six keys plus modifiers, which is enough for most games and all typing. True NKRO requires a hardware design that bypasses the matrix-scanning shortcut budget keyboards use to save cost.

If you suspect chatter, try the keyboard’s built-in debounce setting — most gaming keyboards expose this in their companion app. If chatter persists across debounce settings, the switch itself is wearing out and needs replacing: five minutes on a hot-swap board, or a soldering iron on everything else.

Laptop keyboards: when one key dies

On laptops, single-key failures usually come from one of three causes. Crumbs or dust under low-profile chiclet keys interrupt the dome contact — a burst of compressed air at an angle clears most cases. A snapped scissor clip is harder: the keycap still presses but feels mushy and may not register; replacement clips are cheap but take patience to fit. A damaged ribbon cable kills entire rows or zones at once and almost always means a keyboard-deck replacement.

Before any teardown, try plugging in an external USB keyboard. If that works cleanly in this test, your laptop’s built-in keyboard hardware has the problem — not the OS, the driver, or the browser.

Frequently asked questions

Does this work for laptop, mechanical and wireless keyboards?

Yes. The test uses standard browser KeyboardEvent APIs, which work the same way for built-in laptop keyboards, USB-wired, USB-wireless and Bluetooth keyboards. If your operating system sees the keyboard, this test does too.

Why does my key show the wrong letter?

That’s a keyboard layout mismatch, not a hardware failure. The physical key is fine — confirm by checking that the Key code value matches what the key should be (the key labelled Y should report KeyY). If KeyY prints “Z” on screen, your OS is using a different layout than the physical keyboard.

On Windows press Win+Space to cycle layouts. On Mac switch in System Settings → Keyboard → Input Sources. On Linux run setxkbmap us, or your country code.

Can this detect key chatter or double-typing?

Yes. Press the suspect key once and look at the event log. If you see two keydown events within a few milliseconds for a single press, the switch is chattering. Mechanical switches develop chatter over time; the fix is replacing the switch, or on some keyboards increasing the debounce threshold in the companion software.

What is n-key rollover and how do I test it?

N-key rollover is a keyboard’s ability to register every simultaneous key press independently. To test it, hold down as many keys as you can with both hands and watch the Max rollover figure. Budget keyboards usually max out at two or three, anti-ghosting boards reach six, and full-NKRO keyboards report every key you press.

Note that USB devices in boot mode (used during BIOS) cap at six-key rollover by spec, but most modern keyboards switch to a different report mode at OS level to bypass that limit.

Why doesn’t the Windows / Cmd key show up?

The OS often consumes the Win or Cmd key before the browser sees it — that’s why pressing it opens the Start menu or Spotlight. Press it in combination with another key (hold Win+A) and you’ll usually see both register here.

Does pressing F11 break the test?

F11 toggles browser fullscreen on most browsers, which the page can’t prevent — it’s deliberately left alone so you never get trapped. The test still records the key press; the layout just goes fullscreen briefly. Press F11 again to return.

Does the test cover the numpad?

Yes — the numpad is shown as its own cluster and every key highlights like the rest. If you use a tenkeyless keyboard, the numpad block can be hidden without affecting detection: numpad keys still appear in the event log with their code values whenever they’re pressed.

Is anything I type recorded or sent anywhere?

No. Every key event is processed in your browser only. Nothing is uploaded, logged, or stored. You can verify by opening DevTools and watching the Network tab while you type — no requests are made.

Can I use this to test a keyboard before buying?

Absolutely — one of the most common uses. Plug in the keyboard, run the test, and check that every key reports cleanly with no chatter and that the rollover claim matches the marketing copy. Five minutes of testing catches most defects before the return window closes.

A whole row of keys stopped working at once. What now?

On a laptop, an entire row or column dying at once almost always means a damaged ribbon cable or a flooded keyboard membrane — not individual switches. Power off, plug in an external USB keyboard, and book a service appointment. On a desktop keyboard, try a different cable or USB port first; if that doesn’t help, the internal matrix board is failing and the unit needs replacing.

Does this work on a phone or tablet?

Only with a physical Bluetooth or USB keyboard attached — on-screen touch keyboards don’t fire the same hardware-style key events the test relies on. If you’re testing a touchscreen, use the touchscreen test instead.