Keyboard Test
Your Keyboard
Detecting…
Test your keyboard online: press any key to see its key name and code, track every key you have tested, and find keys that are broken or not registering.
Last updated
Check next
All hardware tests toolsHow to use this test
- Click inside the test area to focus it.
- Press each key you want to test. The key name, its code and any held modifier keys (Ctrl, Alt, Shift, Meta) appear immediately.
- Every key you press is added to the "Keys tested" list. Work across the keyboard row by row; a key that never appears in the list is not registering.
What is it?
This interactive test captures keydown events and displays the key name, code, and modifier state for each press.
How it works
The test listens for keydown events and shows two values for each press. "key" is the character or action produced, which depends on your keyboard layout (for example "z" on a QWERTY keyboard). "code" is the physical key position, which stays the same on every layout (that same key is always "KeyZ" on a QWERTY board, even on an AZERTY layout where it types "w"). Default browser actions are blocked inside the test area, so keys such as Tab, Space and arrows do not scroll or move focus while you test.
Why this matters
Gamers and developers verify key mappings, detect stuck keys, and troubleshoot keyboard layout issues.
Practical Use Cases
- Testing a new or second-hand keyboard before the return period ends.
- Finding sticky, dead or chattering keys after a spill.
- Developers checking the key and code values their app will receive.
How to check manually
Windows On-Screen Keyboard
Press Windows key + Ctrl + O. Keys light up on the on-screen keyboard as you press them on your physical keyboard.
macOS Keyboard Viewer
Open System Settings → Keyboard → Input Sources → Edit and turn on "Show Input menu in menu bar", then choose "Show Keyboard Viewer" from that menu.
Troubleshooting
- Some keys do nothing
- The Windows key, Fn, and shortcuts like Alt + Tab or Cmd + Space are handled by the operating system and never reach the browser. This is normal and does not mean the key is broken.
- A key types the wrong character
- Check your keyboard layout in the system language settings. The code value shows the physical key, so you can tell a layout problem from a hardware one.
Frequently asked questions
How do I know if a key is broken?
Press it inside the test area. If nothing appears and it never shows in the "Keys tested" list, while other keys work, the key is not registering. Try another USB port or a fresh battery first.
Can this test detect ghosting?
The test shows modifier keys held together with other keys, but it does not show every key held at once, so it is not a full anti-ghosting (n-key rollover) test.
Why does the Fn key not show up?
Fn is handled inside the keyboard itself to change what other keys send. It never sends its own key event to the computer.
What is the difference between key and code?
key is the character produced (it depends on your layout and Shift). code is the physical key position, such as "KeyA" or "Digit1", which never changes with layout.
Can I test a laptop keyboard and an external keyboard?
Yes. Both send the same key events. Test each keyboard separately so you know which one a key belongs to.
Explore more diagnostics
Visit the DeviceScope homepage for a complete live dashboard, or browse all webcam, mic & hardware tests.