Keyboard Tester

The keyboard tester checks every key on your keyboard in the browser. Press each key and watch it light up on an ANSI (US) or ISO (UK/European) layout; keys that never light up aren't sending a signal. Hold several keys at once to test rollover and ghosting, and see the event.code, key and keyCode of the last key for debugging. Nothing is recorded or sent anywhere.

Key identifiers

PropertyExampleMeaning
codeKeyQPhysical position
key"a" on AZERTYCharacter produced
keyCode65Legacy numeric code
locationrightLeft/right modifier or numpad

When to use it

  1. Check a new or second-hand keyboard for dead keys.
  2. Find a sticking or double-registering key.
  3. Test rollover for gaming.
  4. Look up event.code and key values while writing shortcuts.

How to Use

  1. Pick ANSI or ISO to match your keyboard.
  2. Press every key until it turns green.
  3. Hold several keys together to test rollover.
  4. Use Reset to start again.

Features

  1. ANSI and ISO layouts
  2. Navigation cluster
  3. Tested-key counter
  4. Rollover check
  5. event.code, key, keyCode and location
  6. Browser shortcuts keep working
  7. 100% client-side

FAQs

How do I test my keyboard?

Press every key. Each one turns green once it registers; any key that stays gray isn't working.

What is key rollover?

How many keys can be held down together and still register. Hold several keys and watch 'Most at once'.

What is ghosting?

When pressing certain key combinations registers an extra key you didn't press, or drops one you did.

Why doesn't the Fn key light up?

Fn is handled inside the keyboard and never sent to the computer, so no browser can detect it.

Is what I type recorded?

No. Key presses are shown on the page and never stored or sent.

Technical Details

The keyboard tester listens for keydown and keyup events on the page and identifies keys by KeyboardEvent.code, which names the physical key position (KeyA, ShiftRight, IntlBackslash) regardless of the keyboard language, so a German or French layout lights up the right caps. A key turns solid while held and green once it has registered at least once; the counter shows how many of the drawn layout's keys have been tested. Held keys are tracked as a set, and the largest set seen is the rollover figure: hold several keys together and if the count stops rising, or a key you didn't press appears, the keyboard has limited rollover or ghosting. Default actions are blocked so Tab, Space and arrow keys don't scroll or move focus, but Ctrl and ⌘ combinations, F5 and F12 still work. The held set is cleared when the window loses focus, because the keyup for a key released in another window never arrives. Keys handled by the keyboard firmware, such as Fn and some media keys, never reach the browser.

Developer Tools

Developer Tools

  • localStorage Viewer
  • Public API Directory
  • Tech Stack Decision Matrix
  • htaccess Redirect Generator
  • Code to Image
  • Hash Generator
  • Email Validator
  • User Agent Parser