Keyboard Test
Press any key to check that your keyboard works. Each key lights up as you press it, so you can quickly find keys that are dead, stuck, or typing twice. Everything runs in your browser and nothing you type is stored.
Press any key to test it. Click the keyboard to also test Tab and keys the browser uses for shortcuts.
Last key pressed
- key
- -
- code
- -
- keyCode
- -
- location
- -
- Held right now
- 0
- Most held at once
- 0
Key event log
Your last 8 key presses will show here.
About the keyboard test
What the keyboard test does
The keyboard test shows a full keyboard on screen and lights up each key when your computer receives it. Keys are matched by their physical position, so the test works the same with any language layout. It also counts how many keys you can hold at once, warns about keys that send one press twice, and shows the key, code, and keyCode values a web page receives for every press.
Why use our keyboard test
- ·Free. No signup, no paywall, no limits.
- ·Private. Key presses stay on your device and are never stored.
- ·Every key. Click the keyboard to also test Tab, Space, arrows, and keys the browser normally uses for shortcuts.
- ·More than a key check. See rollover, catch key chatter, and read the values developers need.
How to test your keyboard online
- 1
Press each key
Press the keys on your keyboard one by one. A key turns solid green while you hold it and stays light green once it has been tested. The counter at the top shows how many keys you have tested so far.
- 2
Click the keyboard for shortcut keys
Some keys, like Tab, Space, and the arrow keys, also do things in the browser. Click the keyboard picture first so every key is captured. Press Esc twice, or click outside it, to go back to the page.
- 3
Pick your keyboard size
Choose Full size (104 keys) or Tenkeyless (87 keys, no number pad) so the counter matches your keyboard.
- 4
Test rollover and chatter
Hold several keys at once and watch Most held at once to see how many your keyboard registers together. If a key types twice on a single press, a warning names the key.
Keyboard keys not working? What the test tells you
What you see in the test points to where the problem is.
- ·A key does not light up. The keyboard is not sending that key. Clean under the keycap, try another USB port, or test the keyboard on another computer. If it works there, the problem is the computer, not the keyboard.
- ·A key lights up here but not in one app. The keyboard is fine. Check the app's key bindings, or a key remapping program such as Microsoft PowerToys, AutoHotkey, or your keyboard maker's software.
- ·Number pad keys move the cursor. Num Lock is off. The test still lights up the key, but the key column shows ArrowUp or Home instead of a number. Press Num Lock and try again.
- ·Keys only register when held down. On Windows, Filter Keys ignores short key presses. Turn it off in Settings > Accessibility > Keyboard.
- ·A key types twice. If the test shows a chatter warning for that key, the switch is sending one press twice. Blowing out dust can help. On a mechanical keyboard, the switch may need replacing.
Keys a keyboard test cannot see
A web page only gets the keys that the keyboard and the operating system pass on to the browser. A key that does not light up for one of these reasons is not broken.
- ·Fn. The keyboard handles it internally to switch what other keys do, and never sends it to the computer. Test it by holding Fn and pressing a key with a second function.
- ·Media, volume, and brightness keys. The operating system often uses them first. The ones the browser does receive are listed under Other keys detected.
- ·Browser and system shortcuts. Combinations like Ctrl+W, Ctrl+T, Alt+Tab, and Cmd+Q are handled before the page sees them. Test those keys on their own instead.
- ·Extra keys. Keys that are not on a standard US keyboard, such as the extra key next to left Shift on UK and European keyboards, F13 to F24, or macro keys set up to send them, show in the Other keys detected list instead of on the picture.
Keyboard ghosting and rollover test
Rollover is how many keys your keyboard can register at the same time. To test it, hold down the keys you press together, for example W, A, and Shift for running diagonally in a game, then add Space. Every key you hold should stay solid green, and Most held at once shows the highest number the test has seen.
If a key you are holding does not light up, your keyboard cannot report that combination. This is called ghosting or blocking, and it is common on cheaper office keyboards. Gaming keyboards that list 6-key rollover (6KRO) or n-key rollover (NKRO) can handle six keys or every key at once. Some only switch to NKRO in their own settings or with a key combination, so check the manual if the number stops at six.
JavaScript key codes: key, code, and keyCode
If you write code that reacts to the keyboard, the Last key pressed panel shows the values the browser puts on each keydown event.
| Property | Pressing A | What it means |
|---|---|---|
| key | a (or A with Shift) | The character typed, or a name like Enter. Changes with Shift and layout. |
| code | KeyA | The physical key. Stays the same in any layout. Good for game controls. |
| keyCode | 65 | An older number for the key. Deprecated, but still common in older scripts. |
Common keyCode values are 13 for Enter, 27 for Escape, 32 for Space, and 37 to 40 for the arrow keys. For new code, use key to read what was typed and code to read which physical key was pressed.
Frequently asked questions
- How do I test my keyboard?
- Open this page and press each key. Keys light up green when the keyboard sends them, and a counter shows how many of the 104 keys (or 87 on a tenkeyless keyboard) you have tested. Click the keyboard picture first if you also want to test Tab and keys the browser uses for shortcuts.
- Why does a key not light up?
- Either the keyboard is not sending it, or it is a key that never reaches the browser. Fn is handled inside the keyboard itself, so no keyboard test can see it. Some media and volume keys are taken by the operating system first. For a normal letter or number key, a key that never lights up usually needs cleaning or repair.
- Why do the Windows key and Print Screen act differently?
- Windows opens the Start menu when you release the Windows key, after the page has already seen the press, so the key still turns green. Click back on the page to keep testing. Print Screen on Windows only sends a key release, not a press, so it does not light up while held. The test counts a release as tested, so it still turns green afterwards.
- What is key ghosting?
- Ghosting is when you hold several keys and one of them does not register, or a key you did not press appears. It happens on keyboards that are wired so that some key combinations cannot be told apart. Hold the keys you use together in games and check that every one lights up.
- What is n-key rollover?
- Rollover is how many keys a keyboard can register at the same time. 6-key rollover (6KRO) handles any six keys plus the modifier keys, which is the limit of the standard USB keyboard mode. N-key rollover (NKRO) handles every key at once. The Most held at once number shows the highest count this test has seen.
- What is key chatter?
- Chatter is when one press of a key is sent twice, so a letter gets typed double. The test warns about a key when it is pressed again less than 30 ms after it was released, which is faster than a person can tap. Dust and worn switches are the usual cause.
- What is the difference between key, code, and keyCode?
- They are the values a web page gets for each key press. key is the character or name the key produces, like a, A, or Enter, so it changes with Shift and your language layout. code is the physical key, like KeyA, and stays the same in any layout. keyCode is an older number, like 65 for A, that is deprecated but still used by many scripts.
- Does the test show my own keyboard layout?
- In Chrome and Edge, the letter and symbol keys show the characters of your own layout, such as AZERTY or QWERTZ. Other browsers show US labels. Either way, keys are matched by their physical position, so the test works with any layout.
- Does the keyboard test work on a phone or tablet?
- It works with a physical keyboard connected to a tablet or phone by Bluetooth or USB. The on-screen keyboard only opens for a text box and does not send the same key presses, so it cannot be tested here.
- Are my key presses recorded or sent anywhere?
- No. The test runs entirely in your browser and only keeps the last 8 key presses on the page so you can read them. Nothing is uploaded or stored, and everything is cleared when you close the page or click Reset.