Keyboard test / Mouse test / Troubleshooting
How to Test a Keyboard and Mouse: A Step-by-Step Diagnosis

A missed key or unwanted double-click does not immediately prove the device is broken. The cause may be a loose connection, low battery, operating-system setting, browser behavior, application shortcut, debris, damaged switch, or failing sensor. A browser test is useful because it answers one narrow question first: which input events are reaching this page right now?
That result is evidence, not a complete hardware laboratory. Browsers receive standardized keyboard, pointer, mouse, and wheel events from the operating system. They do not expose every raw electrical signal, firmware detail, polling measurement, or vendor diagnostic. Use the test to isolate the layer where the problem appears, then confirm it in another application or device.
Before testing
- Reconnect a wired device and try another known-working port. Avoid an unpowered hub during diagnosis.
- For a wireless device, check charge or batteries, receiver placement, and Bluetooth connection state.
- Close software that remaps keys or mouse buttons if you want to observe default behavior.
- Open the test in a current browser and click inside the test area so it has focus.
- Record the exact symptom: one dead key, repeated characters, skipped scrolling, wrong-direction scrolling, accidental double-clicks, or pointer jumps.
Step 1: test every keyboard key
Open the PetexSpace keyboard test, then press and release each physical key once. Watch for three kinds of failure: a key never appears, one press produces repeated events, or the reported key differs from what you expected. Test modifier combinations such as Shift, Control, Alt, or Option with an ordinary letter as well.
Some shortcuts are reserved by the browser or operating system and may switch tabs, open menus, or never reach the page. Keyboard layout also matters: the physical position and the character produced are different concepts. A key can report its physical code correctly while the selected layout produces another character.

Step 2: test mouse buttons and double-clicks
Use the PetexSpace mouse test and press each available button separately. Confirm left, right, middle, back, and forward buttons only activate when intended. If one physical press produces two click events, repeat at a slower pace and compare with another application. Consistent unintended double-clicking can indicate a worn switch, while a problem limited to one application points toward software or settings.
Step 3: test the wheel
Scroll slowly in one direction for several steps, stop, then scroll back. Look for missing movement, movement in the opposite direction, or input after the wheel has stopped. Touchpads and high-resolution wheels can report different delta sizes, so focus on direction and consistency rather than expecting the same number from every device.
MDN documents wheel input through WheelEvent. It represents wheel or similar input reported to the page, not a direct reading of the encoder inside the mouse.
Step 4: test pointer movement and dragging
Move the pointer slowly in horizontal, vertical, diagonal, and circular paths. A repeated jump in the same physical area may point to the surface or sensor. Random jumps everywhere can also come from wireless interference, contamination, low power, acceleration settings, or a background utility. During a drag test, hold the button while moving. If the drag releases without your finger lifting, the switch or connection may be unstable.

Interpret the pattern, not one event
- Fails in one website only: reload, disable interfering extensions, check focus, and test another browser.
- Fails in several applications on one device: inspect operating-system settings, drivers, remapping utilities, connection, and power.
- Fails on several computers: the device itself becomes the most likely cause.
- Works after moving the receiver or changing the port: investigate interference, hub power, or the original port.
- Fails only with one key or button and cleaning does not help: a local mechanical switch or contact may be worn.
- Problem changes with the desk or mousepad surface: inspect the sensor window and test a plain, non-reflective surface.
What to try before replacing the device
- Power the device off or disconnect it before cleaning. Follow the maker's instructions and do not pour liquid into openings.
- Restart the connection, pair again if appropriate, and test without optional remapping software.
- Try a separate user profile or safe mode when you suspect a background utility.
- Compare with a known-working keyboard or mouse on the same computer.
- Compare the suspect device on another computer using the same sequence.
The goal is not to collect more tests. It is to change one variable at a time until the failure follows the device, stays with the computer, or appears only in one application. Once the pattern is repeatable, repair, cleaning, settings changes, or replacement becomes a much better-informed decision.
Technical reference
MDN: UI Events explains the browser interfaces used for keyboard, mouse, focus, input, and wheel events.