Keyboard test: rollover, ghosting and layout

Press any key and see it light up on a keyboard drawing, with its key, code and keyCode.

loading Keyboard test: rollover, ghosting and layout
About this tool

What is a keyboard test?

A keyboard test shows, key by key, whether your keyboard really sends what you press. You press a key, and a drawing of the keyboard lights it up. A key that never lights up is dead, a key that lights up without being pressed is stuck, and a key that appears as a different one tells you the layout is not what you think. Typical uses: checking a second-hand or new keyboard before you keep it, finding which key of a laptop stopped working after a spill, and confirming whether a gaming keyboard really offers the rollover on the box.

This online keyboard tester draws three layouts: ANSI (US), ISO (Europe, UK, Latin America) and ABNT2 (Brazil). It reads each press as the browser reports it: the key (the character produced), the code (the physical key, such as KeyA or ShiftLeft, independent of the language layout), the legacy keyCode, the position (main block, left or right side, numeric keypad) and which modifiers were held. It counts how many keys are down at the same time and remembers the maximum, which is how you measure rollover. Everything happens in your browser; nothing you type is sent anywhere.

How to test your keyboard

  1. Open the page and keep "Capture the keys on this page" on. With it, even Esc, the F-keys and Space are registered without scrolling or triggering page actions. Browser shortcuts with Ctrl, Alt or Cmd still work.
  2. Choose your layout in "Keyboard layout". If you press a key that only another layout has (for example the extra key next to left Shift on ISO), the tool suggests switching.
  3. Press every key. Keys you have not pressed are in the "not pressed yet" colour, a key held down now is highlighted, and a key that worked stays marked as tested.
  4. Read "Last key pressed" to see its key, code, keyCode, position and modifiers.
  5. For rollover, hold as many keys as you can at once and watch "keys at the same time" and "most at once". If the number stops growing at 6 or less, the keyboard sends at most that many keys (6-key rollover) and some combinations are lost in games.
  6. Use "Start over" to clear the marks and test again.

Examples

A key that never lights up

You press all the letters and the H stays grey. Press it a few times and, if nothing changes, the key switch or its contact is dead. Before replacing the keyboard, check the cable or the Bluetooth connection and clean around the key.

Reading the codes of a key

Pressing the left Shift key shows key = Shift, code = ShiftLeft, keyCode = 16 and position "left side". Pressing the right one shows code = ShiftRight with the same key. This is why games and shortcuts that care about the physical key use code.

Same key, different layout

On a US keyboard the key left of 1 has code Backquote. ISO and ABNT2 keyboards have extra keys that produce IntlBackslash or IntlRo and do not exist on ANSI. Seeing them is how the tool proposes the right layout.

Measuring rollover

Hold A, S, D, F, G, H and then add J. If the counter shows 6 and the seventh key is ignored, you have 6-key rollover (the limit of the USB boot protocol). A counter that keeps climbing to 10 or more indicates N-key rollover (NKRO).

Common mistakes

  • Testing with the capture off. Without capture, Space scrolls the page and F-keys trigger browser actions, so those keys may not register.
  • Blaming the keyboard for a layout mismatch. If @ appears when you press ", the operating system layout (US versus ABNT2 or Spanish) is different from the physical keyboard. This is a setting, not a fault.
  • Mixing up ghosting and rollover. Ghosting is a phantom key appearing when several keys are pressed; rollover is how many real keys register together. Cheap matrix keyboards can have both.
  • Ignoring wireless limits. Some Bluetooth keyboards and receivers report fewer simultaneous keys than the same board over a cable.
  • Expecting special keys to show. Fn, media keys and brightness keys are often handled by the firmware and never reach the browser.

FAQ

How do I know if my keyboard has dead keys?

Press every key with capture on. Every key that works turns to the "worked" colour, so the ones still in the idle colour at the end are the dead ones.

What is the difference between key and code?

key is the character or action the layout produces (a, Enter). code is the physical position (KeyA, Enter), the same on any language layout. The old keyCode is deprecated but still shown for reference.

What is rollover and how many keys do I need?

Rollover is the number of keys the keyboard reports at once. Typing needs few, but games with many simultaneous keys benefit from NKRO. If you want to see what a key reports for use in code, the key code tool shows the event details.

Why does a key show in the test but not in my game?

The game may read a different layout or filter that key. Compare the code here with what the game expects, or test the same keys in the device information page to see the browser and platform.

Is anything recorded?

No. The key events are used only to draw the keyboard on this page and are not stored or sent.

Report a problem