Keyboard Tester

  • Free, no sign-up
  • Runs in your browser
  • Updated
Quick answer. The Keyboard Tester lights up each key on an on-screen keyboard as you press it, so you can find dead, stuck or ghosting keys. It also shows the key code, event details, how many keys register at once and the key repeat rate.

Keyboard Tester tool

Click here (or Tab to this box) and start pressing keys

Esc
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
`
1
2
3
4
5
6
7
8
9
0
-
=
Backspace
Tab
Q
W
E
R
T
Y
U
I
O
P
[
]
\
Caps
A
S
D
F
G
H
J
K
L
;
'
Enter
Shift
Z
X
C
V
B
N
M
,
.
/
Shift
Ctrl
Win
Alt
Space
Alt
Win
Menu
Ctrl
Ins
Home
PgUp
Del
End
PgDn
↑
←
↓
→
0
Keys tested (of 84)
0
Held now
0
Max held at once
-
Repeat rate
Event details appear here when you press a key.

Rollover check: hold as many keys as you can (try A S D F J K L). If “Max held at once” stops rising or an unpressed key lights up, your keyboard has limited rollover or ghosting.

Runs in your browser. Your data never leaves your device.

How to use the Keyboard Tester

  1. 1Click inside the tester area so it receives your key presses.
  2. 2Press every key once. Keys you have tested turn green; a key held down shows as active.
  3. 3Choose ANSI or ISO layout and Windows or Mac labels to match your keyboard.
  4. 4Hold several keys together to check rollover and ghosting.
  5. 5Hold one key down to measure the key repeat rate, then press Reset to start again.

What is a keyboard tester?

A keyboard tester is a page that shows, key by key, which keys your computer actually receives. This keyboard tester draws a full keyboard on screen and lights up every key the moment you press it. Keys you have already tested stay green, so after pressing everything once you can see at a glance which keys are dead, which stick, and which never register.

It is useful when you buy a second-hand keyboard, after spilling a drink, when one letter keeps missing while you type, or when you want to check how many keys a gaming keyboard can handle at once.

How does the keyboard tester detect key presses?

Every time you press or release a key, your browser fires a keydown or keyup event. Each event carries a few values, which the tester shows in the event panel:

PropertyWhat it meansExample
keyThe character or name the key produces with your current layouta, A, Enter
codeThe physical position of the key, regardless of layoutKeyA, ShiftLeft
keyCodeAn older numeric code, kept for compatibility65
locationStandard, left, right or numpad copy of a keyleft for Left Shift
repeattrue while a held key is auto-repeatingtrue

The tester lights keys by their code, which is why Left Shift and Right Shift light up separately, and why a French AZERTY keyboard still lights the correct physical key. You can read the full definitions in the MDN KeyboardEvent reference and the W3C UI Events KeyboardEvent code values.

ANSI vs ISO layouts

Most keyboards follow one of two physical standards. ANSI (common in the US and Pakistan) has a wide, single-row Enter key and a long left Shift. ISO (common in the UK and Europe) has a tall, L-shaped Enter key, a short left Shift with an extra key beside it, and a # key next to Enter. Pick the one that matches your keyboard so the drawing lines up. The Windows/Mac switch only changes labels, for example Win becomes ⌘ Cmd and Alt becomes ⌥ Option.

How do I test for ghosting and n-key rollover?

Keyboards connect keys in a grid of rows and columns. Pressing several keys at once can confuse a simple grid, which causes two problems:

  • Blocking: some keys in the combination are ignored.
  • Ghosting: a key you did not press appears to be pressed.

To test, click the tester and hold keys one at a time without letting go: A, S, D, F, then J, K, L. Watch Max held at once. If it stops rising at 2 or 3, your keyboard blocks combinations. Many USB keyboards support at least 6 keys plus modifiers; keyboards with full n-key rollover (NKRO) register every key. Try combinations you use in games, such as W + A + Shift + Space, because a keyboard can be fine for typing and still drop keys in a game.

Worked example: finding a dead key

Say your laptop sometimes skips the letter "e" while you type.

  1. Click the tester area so the border turns green.
  2. Press E ten times, slowly. If the key lights every time, the switch works and the problem may be speed or a sticky keycap.
  3. Now type fast across the top row. If E sometimes does not flash, the switch is unreliable.
  4. Check the event panel: if code shows KeyE but key shows something else, the issue is your keyboard layout setting, not the hardware.

Then hold E for two seconds. The Repeat rate stat should settle at a steady number, usually somewhere around 25 to 33 presses per second on Windows defaults. A rate of 0 means the key was released early, which points to a key that is not making steady contact.

Tips for testing a keyboard properly

  • Test every key, including the less used ones. F-keys, the backslash key, right-hand modifiers and the menu key fail more often than you notice, simply because you rarely use them.
  • Test with the keyboard in the position you use it. A loose cable or worn USB port may only fail when the keyboard moves.
  • Compare with another program. If a key fails here and also in Notepad, it is the hardware. If it only fails here, a browser extension may be grabbing it.
  • After a spill, let it dry for at least 24 hours before testing, unplugged.
  • Check mouse buttons too. If you are checking a full desk setup, follow up with the Double Click Test and the CPS Test.

Once you know every key works, measure how well you use them with the Typing Speed Test.

What a browser keyboard test cannot check

  • The Fn key is handled inside the keyboard and never reaches the computer, so it cannot light up. You can test it indirectly: Fn + F-key combinations should send media or brightness keys.
  • System shortcuts such as the Windows key, Alt + Tab, Print Screen, Ctrl + W and some media keys may be taken by the operating system or browser before the page sees them.
  • Key travel, actuation force and sound are physical qualities a web page cannot measure.
  • Polling rate (how often a keyboard reports to the computer) cannot be measured precisely in a browser because events are batched to the screen's frame rate.
  • Laptop keyboards with extra vendor keys may send codes that do not match any key on the drawing. They still appear in the event panel.

For game controllers rather than keyboards, use the Gamepad Tester.

Frequently asked questions

How do I know if a key is broken?

Press the key once. If it does not light up on the on-screen keyboard, the computer did not receive it. Try it in another program too; if it fails everywhere, the switch, the cable or the keyboard controller is at fault.

What is keyboard ghosting?

Ghosting is when pressing several keys together makes an extra key register that you did not press, or when some keys in the combination are ignored. Cheaper keyboards share wiring between keys, which limits combinations.

What does n-key rollover (NKRO) mean?

N-key rollover means every key registers correctly no matter how many you hold at once. Many USB keyboards support 6-key rollover; gaming keyboards often support full NKRO.

Why do some keys like Print Screen or Fn not show?

The Fn key is handled inside the keyboard and never reaches the computer. The operating system or browser can also capture keys such as Print Screen, the Windows key or media keys before the web page sees them.

Does the tester record what I type?

No. Key presses are only used to highlight keys on screen. Nothing is stored or sent anywhere.

Last updated: . Written and tested by Abdul Moid Khan, ATechCraft. Read how we build and test tools.