Spacebar Hold Test

Track a physical Space key from press to release, with live duration and completed hold statistics.

Monitoring stopped

Waiting0.0 msPress and release your Space key here.

A hardware keyboard is required, including on mobile. Touch only focuses this area; it does not test a Space key. Tab leaves the tool and stops monitoring.

Last completed hold

—

Longest hold

—

Shortest completed hold

—

Average hold duration

—

Completed holds

0

Repeat events while held

0

Interrupted holds

0

Unusual browser sequences

0

event.key: — · event.code: — · event.repeat: —

Browser-detected events only. These observations do not prove a physical keyboard fault. Events stay in page memory and are cleared on navigation.

One initial keydown + optional auto-repeat events + one keyup = one completed hold. Losing focus, stopping, or hiding the tab excludes an unfinished hold.

ADVERTISEMENT

Test whether your Space key is detected

Inspect basic key, code, and event detection.

Check repeated Spacebar inputs

Inspect short intervals and unusual event sequences.

What the Spacebar Hold Test measures

The Spacebar Hold Test follows a single browser-visible press from initial keydown to release. While the tracked key is down, the display says Pressed / Holding and updates the elapsed duration. A matching keyup changes the state to Released and adds one completed hold. Waiting means the current monitoring period has not yet begun a hold. These visible labels let you interpret the result without depending on a change of color.

Start monitoring, press your hardware Space key normally, hold it briefly, and release it while the input area remains focused. Try several different durations rather than pursuing a speed score. Touch can focus the area but cannot reproduce physical Space key events. An external keyboard works with a compatible phone or tablet; without one, this page can explain the measurement but cannot perform an actual Space key hold test.

Keydown and keyup define one complete hold

A hold begins with an initial non-repeat Space keydown. The tool stores a performance.now() timestamp and considers that browser key state active. On keyup, it subtracts the starting timestamp from the current clock reading. This creates a completed duration in milliseconds. The Spacebar Hold Test is observing the interval between delivered events, not continuously polling a physical switch or measuring finger contact with the keycap.

A second non-repeat keydown during an already tracked hold is an unusual browser sequence. It does not restart the timer or add another completed hold. A keyup without a tracked start also cannot supply a duration. This approach keeps the results tied to an actual down-to-up pair that the tool observed. After any interruption, release Space before beginning another monitoring period so the next pair has a clear start.

Auto-repeat does not split the held key

Many systems send repeating keydown events when a key remains held. Their event.repeat flag is true, and their rate may depend on repeat settings or the environment. The hold spacebar test counts those repeats while a tracked hold is active, but leaves its starting timestamp intact. One initial down, zero or more repeating downs, and one release still produce exactly one completed hold.

A large repeat count is therefore not a large number of separate presses. Conversely, no repeat events during a short hold does not show a failure: the key may be released before repeat begins, or the environment may deliver repeat differently. For questions about unusually quick separate input cycles, use the double press page. For independent presses per second, use a speed tool after confirming basic key detection.

Understand live duration and completed statistics

The current duration display refreshes about twenty times per second while monitoring. Completion uses the event handler’s high-resolution clock reading, so it does not depend on counting refreshes. Last hold means the most recent complete down-to-up pair. Longest and shortest compare all completed holds since Clear. Average hold duration is their summed duration divided by the completed hold count; an unfinished hold never enters those statistics.

Milliseconds and decimal places help compare observations, but the displayed precision is not a guarantee of physical timing accuracy. Keyboard delivery, browser scheduling, and privacy-related clock precision can affect the result. Keep the same device and browser when comparing holds. Clearing the session removes the statistics, and leaving the page discards them. The tool does not save a hardware profile or upload its event observations.

Focus loss and an apparently stuck Space key

An application may appear stuck if it receives a down event and misses the corresponding release after focus changes. A browser page cannot reliably recover an event delivered elsewhere. The Spacebar Hold Test stops monitoring when you leave the input area, the window blurs, or the tab becomes hidden. It invalidates an active hold, displays Interrupted, and increments interrupted holds separately. Stopping manually has the same exclusion rule.

That interrupted label describes incomplete observation, not proof that a key stayed physically down. Return to the page, release Space, and choose Start monitoring again. Tab remains available to leave the tool, and normal buttons and form fields keep their keyboard behavior. The tester prevents Space scrolling only inside the deliberately active input area. These focus boundaries keep the interface from remaining indefinitely in Holding after the page loses input access.

Choose the right diagnostic follow-up

Use the broad Spacebar Key Test when you first want to know whether Space events arrive at all, or when you want a compact summary of key, code, and repeat. This Spacebar Hold Test gives more attention to current state, release pairing, live duration, and interrupted holds. The Double Press Test instead examines non-repeat press intervals and possible repeated inputs, with an ordered event log to inspect the surrounding sequence.

If an issue occurs in only one application, compare its behavior with ordinary text entry and another browser using gentle, repeatable holds. Keep settings and connection consistent for the comparison. A normal result here cannot certify a keyboard, and an odd result cannot definitively diagnose a switch, controller, firmware, or operating-system driver. Browser-based testing helps describe the circumstances of an input symptom; further investigation should follow the relevant application or manufacturer’s normal support guidance.

Frequently asked questions

Does holding Space create many completed holds?

No. Repeat events remain part of one tracked hold. Only a matching keyup completes the hold and updates its duration statistics.

Why did my hold become interrupted?

Leaving the input area, losing window focus, hiding the tab, or stopping monitoring removes reliable release tracking. An active hold is excluded from completed results and marked interrupted.

Does Holding prove that the switch is still physically closed?

No. Holding means the page received a starting keydown and has not yet received its matching release or an interruption. It is a browser event state, not an electrical switch measurement.

Can I run the Spacebar Hold Test on a phone?

Yes, with a compatible attached hardware keyboard. A touchscreen tap can focus the test area but does not test a physical Space key.