Keyboard Test
Press any key to test your keyboard. Every key press is detected and highlighted in real time — find broken, stuck, or missing keys instantly.
Stuck Key Detected
Key appears to be stuck or repeating continuously. Check if the keycap is physically jammed.
key
code
keyCode
Modifiers
No keys pressed yet. Switch to the Test Keyboard tab and start pressing keys.
Showing last key events
| # | Event | key | code | keyCode | Modifiers | Repeat |
|---|---|---|---|---|---|---|
| repeat — |
A key doesn't register
Some keys (like Win/Meta, Print Screen, or browser shortcuts) are intercepted by the OS or browser. Try pressing the key alone. If it still doesn't appear, the key may be physically broken or its switch has failed.
A key registers but wrong character appears
This usually means your OS keyboard layout doesn't match the physical key labels. Check your system language and input settings. The code value always reflects the physical key position regardless of layout.
Stuck key warning showing
The key is firing continuous repeat events without releasing. Check for physical debris beneath the keycap, try pressing and firmly releasing the key, or remove and reseat the keycap if it's a mechanical keyboard.
Modifier combos don't work
Browsers intercept shortcuts like Ctrl+W, Ctrl+T, Alt+F4, etc. These events never reach the page. Test each modifier key individually (just Shift, Ctrl, Alt, or Meta) to confirm they register on their own.
Wireless keyboard keys feel delayed
Bluetooth or RF wireless keyboards can have slight latency. If keys register but feel sluggish, check the battery level, reduce the distance to the receiver, and ensure no interference from other wireless devices.
Numpad keys not working
Check that Num Lock is enabled. With Num Lock off, numpad keys act as navigation keys (arrows, Home, End) rather than numbers. The key LED on your keyboard shows the current state.
💡 How to Use This Tool
Test every key on your keyboard in under a minute:
Click on this page
Click anywhere on the page so keyboard focus is here, then simply press any key.
Watch the visual keyboard
Each key lights up when pressed and shows a green dot once tested — helping you track which keys still need checking.
Check the Key Log
Open the Key Log tab to see full event details — key value, physical code, keyCode, and modifiers — useful for developers.
Troubleshoot if needed
If a key doesn't respond, check the Troubleshooting tab for common causes and fixes for unresponsive or stuck keys.
📖 About Keyboard Test
What is the Keyboard Test?
The Keyboard Test is a fully client-side browser tool that lets you verify every key on your keyboard is working correctly — without installing any software. It uses the standard KeyboardEvent API built into all modern browsers to detect and display key presses in real time.
Whether you're troubleshooting a laptop with a broken key, testing a new mechanical keyboard, verifying an external USB keyboard, or checking for stuck or repeating keys, this tool gives you a complete diagnostic instantly.
Common Use Cases
- Pre-purchase verification: Test a used or refurbished keyboard before committing to a purchase.
- Broken key detection: Quickly identify which specific keys are unresponsive or behaving unexpectedly.
- Stuck key diagnosis: Find keys that are physically stuck and firing repeat events continuously.
- Key code lookup: View the exact
key,code,keyCode, andwhichvalues for any key press — useful for developers. - Layout verification: Confirm that your keyboard layout matches what the OS reports (especially useful after layout changes).
- Gaming keyboard test: Verify all keys register correctly, including gaming-specific keys and function key combos.
- Laptop keyboard check: Test individual keys on a laptop keyboard that may be affected by debris or wear.
Key Features
Visual Keyboard Layout
An interactive on-screen keyboard highlights each key as you press it, giving you a clear visual map of which keys are working. Keys turn highlighted when pressed and return to normal when released.
Key Press Logger
Every key event is logged in real time with its full details: the key value, code identifier, keyCode, modifier states (Shift, Ctrl, Alt, Meta), and whether it is a repeat event.
Stuck Key Detection
The tool detects when a key fires more than 5 consecutive repeat events without a keyup, flagging it as potentially stuck — helping you identify hardware problems immediately.
All Keys Counter
A running counter tracks how many unique keys have been tested, making it easy to systematically test every key on a full keyboard.
Key Code Reference
For developers, the tool displays the full set of keyboard event properties for each keypress, so you can look up exact values needed for event listeners and keyboard shortcuts.
Privacy & Security
This tool is entirely private by design. All key event processing happens locally in your browser using JavaScript's built-in KeyboardEvent API. Your keystrokes are never transmitted, logged, or stored on any server. There is no keylogger risk — the page simply listens to keyboard events in the browser sandbox and displays them back to you.
No camera, microphone, or any hardware permission is required. The tool works instantly without any user permission prompt.
Technical Details
The tool is built on the W3C UI Events specification (KeyboardEvent), supported in all modern browsers:
- Chrome/Edge 27+ — Full support
- Firefox 23+ — Full support
- Safari 10.1+ — Full support
- Opera 15+ — Full support
The code property identifies the physical key location (e.g., KeyA, ShiftLeft), while the key property returns the character produced (e.g., a, A, Shift). Both are displayed for each event.
❓ Frequently Asked Questions
Version History
Initial release with visual keyboard layout, key event logger, stuck key detection, and key code reference.
May 30, 2026
Raakkan (Sankar)
AI-driven Full Stack Developer
Indie developer from Tamil Nadu building fast, privacy-first web tools. Creator of Lovable Tools — a growing collection of free utilities and AI-powered tools.