About this tool
This keyboard tester shows a full keyboard on screen and lights up each key the moment you press it, so you can quickly check that every key on a new, used or repaired keyboard works. Keys you have already tested stay highlighted, and a counter shows how many of the 104 keys (or 87 on a compact board) you have checked. The panel below shows the technical details of the last key: its key value, code, keyCode and location.
The tester also checks ghosting and key rollover: hold several keys at once and see how many the keyboard reports together. That matters in games and fast typing, where a basic keyboard may ignore a third or fourth key pressed at the same time.
How it works
Click the on-screen keyboard or move to it with Tab, then press each key once. Keys turn blue while held and green with a dot once tested. Choose Compact for laptops and tenkeyless keyboards without a number pad, and Reset to start over.
The tool listens to the browser's keydown and keyup events and identifies keys by event.code, which names the physical position (for example KeyQ or ShiftRight) and stays the same with AZERTY, QWERTZ, Cyrillic or any other layout. While the keyboard has focus, keys that would scroll or navigate the page, such as Space, the arrows and Backspace, are blocked. Tab is never blocked, so you can always leave the test area.
Example
To test ghosting, hold W, A and S together, then add Space or Shift. If all the keys light up and Most held at once shows 4 or 5, the keyboard handles that combination; if one stays dark, the keyboard has ghosting or blocking there. Many office keyboards register only 2 or 3 keys in some combinations, while gaming keyboards often report 6 or more (6KRO) or every key (NKRO).
After a liquid spill, press every key row by row and watch the counter. If it stops at 103 of 104, the one key left without a highlight on screen is the one to check or clean.
Assumptions and limits
The browser only sees the keys the operating system passes on. Fn, some media and vendor keys, and shortcuts reserved by the system (such as Windows+L, Cmd+Tab or Alt+Tab) never reach the page. Print Screen often reports only a key release, and on macOS other keys may not report a release while Cmd is held, so the tester clears held keys when Cmd is released. Rollover results also depend on USB or Bluetooth mode and the operating system. The on-screen layout is ANSI; the extra key of ISO keyboards appears under other keys detected.
Frequently asked questions
How do I know if a key is broken?
Press it and watch the on-screen key. If it never lights up, or lights up only when pressed hard, the switch or membrane under it is probably faulty. If a different key lights up, the key may be remapped in software, or the keyboard layout setting differs from the keycaps.
What is keyboard ghosting?
Ghosting happens when a keyboard registers a key you did not press, or blocks one you did, because several keys share the same wiring. To test it, hold the keys you use together, such as W, A, S and Space in games, and check that all of them light up.
What do NKRO and 6KRO mean?
Key rollover (KRO) is the number of keys a keyboard can report at the same time. 6KRO means six keys plus the modifiers, the classic USB limit, and NKRO means every key. Hold more and more keys and watch Most held at once to find your keyboard's limit.
What is the difference between key and code?
event.key is the character or function a key produces with the current layout and modifiers, such as a, A or Ä. event.code is the physical key, such as KeyA, whatever the layout. keyCode is an older numeric code that browsers keep for compatibility.
Does it work on laptops and with Bluetooth keyboards?
Yes. Any keyboard the computer recognizes works, including built-in laptop keyboards and Bluetooth or USB keyboards. Choose Compact to hide the number pad. On-screen keyboards on phones and tablets often send incomplete key information, so a physical keyboard gives the most reliable result.
Link with your values
This tool takes no link parameters: open the page as it is.