Keyboard Test

Press every key on your keyboard and watch it light up on the on-screen layout. Keys you’ve tested stay green, so dead or stuck keys stand out right away.

Last key
–
Last code
–
Keys tested
0 / 104
Other keys
0

0 of 104 keys tested.

Click the keyboard first so Space, Tab and the arrow keys don’t scroll or move around the page.

Held Tested Not tested

How to use the keyboard test

  1. Click the on-screen keyboard. That keeps Space, Tab, the arrows and the F-keys inside the test instead of scrolling the page.
  2. Press each key once. It turns blue while you hold it and stays green after you let go.
  3. Look for keys that are still white. You pressed them, but the browser never saw them.
  4. Hold a key for a second, then release it. If it stays blue after you let go, the key may be sticking.
  5. Press Shift + Tab or click outside the keyboard when you’re done. Reset clears everything for a new run.

On a phone, the screen keyboard doesn’t send real key positions, so this test is meant for physical keyboards.

How the keyboard test works

Your browser fires a keydown event when a key goes down and a keyup event when it comes back up. Each event carries two values. key is what the key types with your current layout, like a or Shift. code is the key’s physical position, like KeyA, and it doesn’t change with the layout.

The test lights keys by code, so it works the same whatever language your keyboard is set to. The layout is the US 104-key full-size keyboard (ANSI): function row, main block, navigation keys, arrows and numpad. Keys that aren’t on it, like the extra key next to left Shift on UK and European (ISO) keyboards or F13 to F24, appear under “Keys outside this layout”. Everything runs on your device and nothing is uploaded.

Keys a browser can’t always detect

Some keys are handled by the keyboard, the operating system or the browser before the page sees them. If one of these stays white, it doesn’t mean the key is broken.

KeyWhat happens
FnUsually handled inside the keyboard, which sends a different key instead. Pages normally never see it.
Print ScreenOn Windows it may register only when you release it, or not at all if a screenshot tool grabs it first.
Windows / CommandUsually registers, but system shortcuts like Win + D or Cmd + Tab go to the operating system.
Media and volume keysSome browsers report them (as MediaPlayPause or AudioVolumeUp, for example). Others never see them.
Power, sleep, brightnessHandled by the operating system or the keyboard. They don’t reach the page.
Ctrl + W, Ctrl + T, Ctrl + NBrowser shortcuts a page can’t block. Test Ctrl and those letters separately.
F11 and F12Some browsers use them for full screen and developer tools. The key still registers, but the browser may act on it too.

Key names the test shows

The “Last key” and “Last code” boxes show the raw values from your browser. Here’s what common ones mean on a US layout.

Physical keycodekey
AKeyAa, or A with Shift
1 in the top rowDigit11, or ! with Shift
1 on the numpadNumpad11, or End with Num Lock off
Left ShiftShiftLeftShift
Right CtrlControlRightControl
Left Alt or OptionAltLeftAlt
Windows or CommandMetaLeftMeta
Menu keyContextMenuContextMenu
Backtick (`)Backquote`
Extra key next to left Shift (ISO)IntlBackslashDepends on the layout

What to do if a key doesn’t work

Next, find out how many keys your keyboard registers at once with the keyboard ghosting test, or check your speed with the typing speed test. Testing a mouse too? Try the mouse test.

Frequently asked questions

How do I test my keyboard online?

Click the on-screen keyboard on this page and press every key once. Each key turns green when your browser registers it, so any key that stays white after you press it isn’t reaching the computer. The test needs no download and works with any keyboard.

Why doesn’t the Fn key light up?

The Fn key usually never reaches the browser. On most keyboards and laptops it’s handled inside the keyboard, which sends a different key instead, such as F5 or a brightness change. So a dark Fn key doesn’t mean it’s broken: check it by pressing Fn with an F-key and seeing which key lights up.

Why does a different key light up than the one I pressed?

The test lights keys by their physical position on a US layout, not by the letter printed on them. On a French AZERTY keyboard, for example, the key labeled A sits where Q is on a US keyboard, so Q lights up. Keyboard software that remaps keys can also cause this.

Can this test find keyboard ghosting?

Only partly. You can hold several keys and watch them light up, but the Keyboard Ghosting Test on ToolMarble is built for it: it counts how many keys you hold at once, records your maximum and has gaming combos to try.

Does the keyboard test work on a Mac?

Yes. Command shows on the Win/⌘ keys and Option on the Alt keys. Mac keyboards don’t have keys like Print Screen or Insert, so those simply stay untested. While Command is held, macOS doesn’t report other keys being released, so the test clears held keys when you let go of Command.

Does the keyboard test record what I type?

No. The test runs entirely in your browser and only keeps which keys you pressed while the page is open. Nothing is sent to a server or saved, and closing or reloading the page clears it.

More free tools