Device test · Input
Spacebar Counter
Tap the spacebar and every real press is counted the moment your keyboard reports it — auto-repeat filtered out, presses per second computed live, and suspiciously fast double-registrations flagged as chatter. Everything runs locally in your browser; no keystroke leaves your device.
Press the spacebar — in a timed mode the clock starts on your first press.
How this test works
The counter listens for keydown events whose code property is Space — the physical spacebar, on any language layout. Every real press increments the total; auto-repeat events, which the operating system fabricates while a key is held, carry a repeat flag and are ignored. Alongside the raw count, the readout tracks elapsed or remaining time, the running presses-per-second rate, and the gap between each pair of consecutive presses.
Timing comes from the browser's monotonic clock (performance.now), which counts milliseconds independently of the wall clock. In timed modes the window opens on your first press rather than when you click a mode button, so reaction time never eats into the run; when the window closes the result is posted and later presses are ignored until you reset. The chatter check compares each keydown to the one before it: a gap under 30 milliseconds is beyond human finger speed for two separate presses, so it is flagged as a likely double-registration from the switch itself.
Browsers deliver key events with some timing jitter, so one chatter flag in a frantic run is not a verdict — repeated flags on single deliberate presses are the meaningful signal. The rate figure is only as precise as event delivery on your system, and nothing here can measure the switch's electrical behavior, actuation force, or feel. If the chatter counter keeps climbing, the keyboard chatter guide covers cleaning, debounce settings, and when a switch is worth replacing.