Keyboard & Mouse Tester
Press keys and click mouse buttons to see them light up on a visual layout. Test every key, button, and scroll wheel on new or mechanical hardware.
Runs in your browser. No data leaves your device.
About this tool
Checks that every key on your keyboard and every button on your mouse registers in the browser. Pressed keys light up on an on-screen keyboard and stay green once tested, and a mouse diagram tracks buttons, scroll direction, cursor speed and distance. Use it to check a new or second-hand keyboard, find a dead key, or confirm mouse side buttons work.
Features
- On-screen 87-key ANSI tenkeyless layout (function row, main block, navigation cluster and arrows; no numpad)
- Keys light up in the accent color while held and turn green once they have been pressed at least once
- Keys tested counter with a progress bar (tested / 87); only keys on the drawn layout count, so extra keys such as the numpad never push it past 100%
- Releasing Cmd on a Mac releases every held key (macOS sends no keyup for keys let go while Cmd is down)
- Last key details: key, code, keyCode and location (Standard, Left, Right or Numpad)
- Mouse diagram for left, middle, right, back and forward buttons plus scroll up and scroll down, with a tested count out of 7
- Live cursor position, speed in px/s (averaged over the last 100 ms) and total distance moved in px, refreshed once per display frame
- Scroll up and down are taken from vertical wheel movement; sideways tilt or swipe is ignored
- Capture mode blocks the browser default action for keys, clicks, right-click menu and scrolling so keys like Tab, Space or F5 can be tested without triggering their normal browser action
- Held keys and buttons are cleared automatically if the window loses focus
- Reset clears all tested keys, buttons, scroll directions and movement stats
How to use it
- Click Start Capturing.
- Press each key on your keyboard and watch it turn green on the layout.
- Click each mouse button and scroll up and down to light up the mouse diagram.
- Check the key details panel if a key seems to register as the wrong key.
- Click Stop Capturing to get normal keyboard and mouse behavior back, or Reset to start over.
Inputs
- Physical keyboard (keydown / keyup events, matched by KeyboardEvent.code)
- Mouse buttons 0-4 and scroll wheel
- Mouse movement
Outputs
- Visual tested / pressed state for each key and mouse button
- Key name, code, keyCode and location of the last key pressed
- Cursor position, speed and total distance
Limits and notes
- Keys and buttons only register while capturing is on
- Print Screen and some media keys are taken by the operating system before the browser sees them; the Fn key never reaches the browser
- Numpad keys show in the last key details but have no spot on the layout, and keyboards without every key cannot reach 100%
- Mouse side buttons only register if the mouse has them and the browser passes them through
- Designed for a physical keyboard and mouse; a notice is shown on small screens
- All events are handled in the page; nothing is stored or sent anywhere
Frequently Asked Questions
How does the Keyboard & Mouse Tester work?
After you click Start Capturing, the tool listens for keydown, keyup, mousedown, mouseup, wheel and mousemove events on the page and blocks their normal browser actions. Each key is matched by KeyboardEvent.code to a key on the on-screen 87-key layout: it lights up while held and green once it has been pressed. Mouse buttons 0-4 and scroll up/down light up on the mouse diagram the same way. Cursor position, speed and total distance are calculated from mouse movement. Stop Capturing returns normal behavior.
Does it work with any keyboard layout?
The tester detects physical key positions using the browser KeyboardEvent.code property, so it works regardless of your language or layout setting. The on-screen layout shows a standard ANSI mapping.
Can it test mouse side buttons and scroll wheel?
Yes. The visual mouse shows left, right, middle, back, and forward buttons plus scroll up and scroll down. Not all mice have side buttons, so your total may vary.
Why do some keys not register?
Certain keys like Print Screen or the Fn key are intercepted by your operating system or keyboard firmware before the browser can detect them. This is a hardware or system-level limitation.