Skip to content
  • No data uploaded
  • Instant results

Keyboard Tester

Press every key on your keyboard. Keys light up blue while held and turn green once they have worked, so dead or sticky keys stand out immediately.

Keyboard Tester

Press any key — it lights up blue while held and stays green once tested.

event.key—
event.code—
Keys held now—
Keys tested—
Most keys held at once: 0

Key presses are read only on this page and are never stored or sent anywhere.

Free Keyboard Tester by pGento

How to test your keyboard

  1. Click anywhere on the page, then press each key.
  2. Any key that stays grey after you press it is not registering.
  3. Hold several keys together to test ghosting / rollover: the “Keys held now” box shows every key the computer sees.
  4. Use Reset to start again — for example after cleaning a key.

Ghosting and N-key rollover

Cheaper keyboards can only report a few simultaneous keys; extra presses are dropped (“ghosting”). Gaming keyboards advertise 6-key or N-key rollover, meaning every key registers no matter how many are held. Try holding W A Shift Space together — if one does not light up, your keyboard has a rollover limit.

Fixing keys that do not work

  • Turn the keyboard upside down and gently shake out crumbs, or use compressed air.
  • For laptops, check Fn-lock — it swaps F1–F12 with media keys.
  • Try another USB port, or re-pair a Bluetooth keyboard.
  • If one key fails on every computer, the switch is faulty; many mechanical keyboards let you replace it.

Some keys (such as Fn, Print Screen on some systems, or keys reserved by your operating system) never reach the browser, so they cannot be tested here.

key vs code

PropertyExample (pressing Shift + 2 on a US keyboard)Use
event.key@The character produced — depends on layout and modifiers
event.codeDigit2The physical key position — the same on every layout

Frequently asked questions

Does the tester record what I type?
No. Keys are shown on this page only and are not stored or sent.
Why does my laptop layout look different?
The diagram is a standard ANSI layout. Keys that do not exist on your keyboard simply stay grey.
Can I test a phone keyboard?
Touch keyboards send text, not physical key codes, so this tester is designed for hardware keyboards.
Keyboard Tester

Embed this tool on your site

Paste this code into any web page. It stays free, fast and ad-free inside your site.

Print or save as PDF

Prints just this tool and its result. Choose “Save as PDF” as the printer to get a file. Branding is stored only in this browser.