
Keyboard tester: test every key, ghosting and rollover
Press any key to see it light up on the keyboard below, hold several at once to check ghosting and n-key rollover, and see the key, code and press time of every key you press.
Keyboard test
Press any key
Connect a keyboard to test it. On a phone or tablet this test needs a USB or Bluetooth keyboard; the on-screen keyboard can't be tested here. Connected one? Tap the keyboard below, then press keys.
Keys light up while you hold them and turn green once they work. While the tester is selected, Space, arrows, Tab, Backspace and F-keys like F5 don't scroll, move focus or reload the page. Press Esc twice to leave it.
Also detected, not on this drawing:
Rollover
- Keys held now
- 0
- Most at once
- 0
Held: none
Last key
event.key - –
event.code - –
keyCode(old)- –
- Location
- –
Keys tested
All keys work0 of 104
Press every key once
Key log
| Event | key | code | Held for |
|---|---|---|---|
| Press a key to see it here. | |||
Mouse buttons
- Left0×
- Middle0×
- Right0×
- Back0×
- Forward0×
Click in this box with each mouse button
Inside this box the right-click menu and middle-click scrolling are off, and in Chrome and Edge the back and forward buttons don't leave the page. Mouse software can change what the side buttons send.
Your key presses stay in this tab: they are never uploaded or saved. Only the keyboard size, layout, theme and animation settings you pick are remembered in this browser.
How to test your keyboard
- Click the keyboard drawing, or press Tab until it's selected. The label above it turns green and says Listening.
- Pick the size and layout of your keyboard. ISO turns on by itself when you press the extra key next to left Shift.
- Press every key once. Working keys turn green, and Keys tested shows how many are left.
- For rollover and ghosting, hold keys one at a time without letting go, like A S D F J K L or your game keys (W + A + Shift + Space), and watch Keys held now.
- Check the key log: Held for shows how long each key was down, and a warning appears if a key registers again within 30 ms of letting go.
Advertisement
Ghosting and n-key rollover, in plain words
Rollover is how many keys your keyboard can report at once. NKRO (n-key rollover) means every key. 6KRO means six normal keys plus the modifiers, because a basic USB keyboard report has room for six keys and one byte for the eight modifier keys (left and right Ctrl, Shift, Alt and Win or ⌘). Some gaming keyboards let you switch between the two.
Ghosting is when a combination of keys makes an extra key appear that you never pressed, because of the grid of wires the keys sit on. Most keyboards block instead: in some combinations the third or fourth key simply doesn't register. Here a ghost shows up as a lit key you aren't holding, and blocking as a key that stays dark. Test the combinations you actually use.
Why a key may not light up
- System and browser shortcuts: the Windows key lights up when you press it, but letting go of it opens the Start menu, which takes focus from the page (click the keyboard to continue). Shortcuts with the Windows key or ⌘, Alt+Tab, Ctrl+Alt+Del and media keys usually go to the operating system, and Ctrl+W, Ctrl+T or Ctrl+N to the browser, often before the page sees them. Ctrl+W and Alt+F4 close the tab or window, so test Ctrl and Alt with harmless keys.
- Fn: usually handled inside the keyboard, so no web page sees it; that's why it is dashed on the 75% drawing. If F1 to F12 act as media keys, try them with Fn or turn on Fn Lock.
- Print Screen: on Windows the system takes it for screenshots and the browser often only sees you let go, so it lights up briefly when you release it.
- Mac and Windows quirks: macOS doesn't report letting go of keys while ⌘ is held, so the tester releases them with ⌘. On Windows, AltGr counts as Ctrl + Alt, so left Ctrl may light up with it, and pressing Shift five times can open the Sticky Keys prompt.
- Layout: keys are matched by position, not by the character they type, so every layout works. If the wrong spot lights up, pick the size and layout that match your keyboard.
- Hardware: a key that only works when pressed hard may be dirty or worn, and several dead keys in one area often point to damage inside, for example after a spill. For wireless keyboards, check the battery or try a cable.
Sources, checked 20 November 2026: USB-IF, Device Class Definition for HID 1.11 (Appendix B and C: six keys plus a modifier byte in the boot keyboard report); W3C, UI Events KeyboardEvent code Values (Fn "is typically a hardware key that does not generate a separate code"); MDN, KeyboardEvent.code, code values (the Windows and ⌘ keys report MetaLeft and MetaRight), Keyboard API, getModifierState() (AltGr sets Ctrl and Alt on Windows) and getLayoutMap(); Chromium code review Bypass key event suppression for PrintScreen; Mozilla bug 1299553 (no key-up while ⌘ is held on macOS); Raymond Chen (Microsoft), Why do user interface actions tend to occur on the release, not on the press? (the Start menu opens when you let go of the Windows key); Logitech, What is Game Mode on Logi Gaming keyboards? (game mode turns the Windows key off).
Your key presses stay in your browser
The tester runs on your device. It doesn't send, store or log what you press, and reloading the page clears your results. It only remembers the keyboard size, layout, theme and animation settings you pick, in this browser. The site's analytics and ads are covered by the privacy policy. Still, don't type passwords into any online tester.
Frequently asked questions
How do I test n-key rollover and ghosting?
Select the keyboard and hold keys down one by one without letting go. If Keys held now stops rising or a key stays dark, you've reached your keyboard's limit for that combination; a lit key you aren't pressing is ghosting. Try several combinations, because the limit can depend on which keys you hold.
Why doesn't the Windows, Fn or Print Screen key light up?
Fn is usually handled inside the keyboard, so web pages never see it. The Windows key does light up, but letting go of it opens the Start menu, which takes focus from the page: click the keyboard to continue. If it stays dark, check whether your keyboard's game mode has turned it off. On Windows, Print Screen may only light up when you let go. So a dark key here isn't always broken.
Does the keyboard tester work with AZERTY, QWERTZ and other layouts?
Yes. Keys are matched by position, so every layout works: just pick the size and ANSI or ISO to match your keyboard. In Chrome and Edge the keys also show your layout's characters; in other browsers a key shows its character once you press it.
Can I test a keyboard on a phone or tablet?
Yes, if a physical keyboard is connected by USB or Bluetooth: tap the keyboard drawing, then press keys. The on-screen keyboard of a phone or tablet can't be tested here.
Does the keyboard tester record what I type?
No. Your key presses are only shown in this tab and are never sent or saved, and reloading the page clears them. The tester only remembers the keyboard size, layout, theme and animation settings you pick, in this browser. The site's analytics and ads are covered by the privacy policy.
More free tools
Advertisement