Input Lag

Keyboard Latency Test

Measure your keyboard's input lag, scan rate, and key response time in real time. Press any key to start — every keystroke is tracked and analyzed instantly.

ms
Average Latency
ms
Shortest Key Press
Hz
Estimated Scan Rate
ms
Jitter
%
Consistency
ms
Processing Lag
Press and release any key to measure its response time
Performance Rating:
Latency Distribution 0 presses
Key Press History
# Key Latency Rating
No keypresses recorded yet. Start typing!

What is Keyboard Latency?

Keyboard latency (also called input lag) is the delay between pressing a physical key and the action being registered by your computer. It's measured in milliseconds (ms) and directly affects how responsive your keyboard feels during gaming, typing, and everyday use.

Total keyboard latency is the sum of multiple components: the keyboard's internal scan rate (how quickly it detects a key press), the polling rate (how often it reports to the computer), debounce time (filtering out accidental double presses), and system processing by the OS and browser.

How This Keyboard Latency Test Works

Our tool measures the key press duration — the exact time in milliseconds between when a key is pressed down (keydown) and released (keyup). By analyzing these intervals, we provide a comprehensive breakdown of your keyboard's performance. Here's what each metric means:

  • Average Latency: The mean response time across all recorded keypresses. Lower values equal faster input processing.
  • Shortest Key Press: The fastest single keystroke detected during your session, representing your keyboard's peak performance capability.
  • Estimated Scan Rate: Calculated as 1000 ÷ shortest key press time. Higher values indicate the keyboard controller scans for inputs more frequently.
  • Jitter: The variance (standard deviation) between your keystrokes. Lower jitter means your keyboard delivers highly stable and predictable latency.
  • Consistency: A percentage rating of how reliable your latency is. 100% means every keystroke takes exactly the same amount of time to register.
  • Processing Lag: The delay between the physical hardware event and the browser firing the Javascript handler. Minimizing this requires closing background apps and using a wired connection.

Keyboard Latency Benchmarks

Latency Range Rating Typical Use Case
< 5 ms Excellent Professional esports, competitive FPS
5–10 ms Great Competitive gaming, fast typing
10–15 ms Good Casual gaming, office work
15–25 ms Average General use, basic keyboards
> 25 ms Poor May noticeably impact fast games

Key Factors That Affect Keyboard Latency

1. Polling Rate

Polling rate (measured in Hz) determines how often your keyboard reports key presses to the computer. Standard keyboards poll at 125Hz (8ms intervals), while gaming keyboards can reach 1000Hz (1ms) or even 8000Hz for ultra-competitive setups.

2. Scan Rate

Scan rate is how frequently the keyboard's internal controller checks its key matrix for new presses. A higher scan rate detects key presses faster. It's calculated as: Scan Rate = 1000 ÷ Shortest Key Press Time.

3. Debounce Time

Keyboards use debounce algorithms to prevent a single press from registering multiple times. This adds a small delay (typically 3–5ms). Some gaming keyboards offer adjustable debounce settings to trade stability for speed.

4. Connection Type

Wired USB keyboards offer the lowest and most consistent latency. 2.4GHz wireless dongles are nearly as fast, while Bluetooth can add 10–20ms of delay. USB 3.0 ports provide a slight advantage over USB 2.0.

Why Keyboard Latency Matters: Gaming vs. Typing

Not everyone needs an ultra-low latency keyboard. The importance of input lag depends entirely on your use case:

  • Competitive Gaming (FPS/Rhythm): In games like CS2, Valorant, or osu!, milliseconds matter. High latency or poor consistency (high jitter) can mean the difference between landing a shot or missing completely. Gamers should aim for under 10ms of total latency.
  • Casual Gaming & General Use: For single-player games, MMOs, or daily web browsing, latencies up to 20-25ms are perfectly fine and generally unnoticeable.
  • Fast Typing & Coding: Typists are more sensitive to consistency than raw latency. If your keyboard has high jitter, keystrokes might register out of order when typing at speeds above 100 WPM, leading to frustrating typos.

Keyboard Switches and Latency

The physical mechanism beneath your keycaps plays a significant role in how fast your input is registered.

Mechanical Switches

Standard mechanical switches (Cherry MX, Gateron) require physical metal contacts to touch. This introduces contact bounce, requiring a debounce delay (usually 3–5ms) before the signal is sent. Linear switches generally feel faster than tactile or clicky options because they have a smoother, uninterrupted travel path.

Optical Switches

Optical switches use a beam of light to register keystrokes. Because there is no physical metal contact, they don't suffer from bounce. This allows for near-zero debounce times, making optical keyboards inherently faster (often sub-1ms hardware latency).

Magnetic (Hall Effect) Switches

Modern competitive keyboards use magnets to track the exact depth of the keypress. They offer "Rapid Trigger" technology, allowing the actuation point to reset dynamically, resulting in the lowest possible practical latency for rapid inputs.

How to Reduce Keyboard Input Lag

  • Use a Wired Connection: Plug in your keyboard directly. Wired mode eliminates wireless transmission delay entirely.
  • Set Polling Rate to 1000Hz+: Use your keyboard's manufacturer software (Razer Synapse, Logitech G HUB, Corsair iCUE) to maximize polling rate.
  • Lower Debounce Time: If your keyboard supports it, reduce debounce to 2–3ms for competitive gaming.
  • Close Background Programs: CPU-heavy applications can delay event processing. Test with minimal programs running.
  • Connect Directly to USB Port: Avoid USB hubs, which add a small amount of latency to each transaction.
  • Update Firmware & Drivers: Keyboard manufacturers regularly optimize latency through firmware updates.

Frequently Asked Questions

What is a good keyboard latency?

For gaming keyboards, latency under 5ms is considered excellent. Latency between 5–10ms is great for competitive play, while 10–15ms is acceptable for most users. Anything above 20ms may be noticeable in fast-paced games or rhythm typing.

How does this keyboard latency test work?

This test measures the key press duration—the exact time in milliseconds between a key being pressed down and released. By tracking these intervals, it calculates your keyboard's average latency, shortest key press, estimated scan rate, jitter, and consistency in real time.

What is keyboard scan rate?

Keyboard scan rate is how many times per second the keyboard scans its key matrix to detect key presses. It is calculated as 1000 divided by the shortest key press time in milliseconds. A higher scan rate means faster key detection.

What is keyboard jitter?

Keyboard jitter is the variance or inconsistency in your keyboard's response time between keystrokes. A low jitter value means your keyboard is highly stable and predictable, which is crucial for rhythm games and fast typing where inputs must be perfectly timed.

Are optical switches faster for gaming?

Yes, optical switches are generally faster than standard mechanical switches. Because they use a beam of light to register inputs instead of physical metal contacts, they eliminate "debounce delay," resulting in near-zero hardware latency and faster response times in competitive games.

Does connection type affect keyboard latency?

Yes. Wired USB keyboards generally have the lowest latency. 2.4GHz wireless keyboards are nearly as fast, while Bluetooth keyboards may add 10–20ms of additional delay compared to wired connections.

How do I reduce keyboard input lag?

Use a wired connection, set your keyboard polling rate to 1000Hz or higher in the manufacturer software, close unnecessary background applications, update keyboard firmware and drivers, and connect directly to a USB port instead of through a hub.

Is this test accurate?

Browser-based tests measure event processing latency, not total hardware-level system latency. Results may vary based on browser, OS, and system load. For the most consistent results, test with minimal programs running and use a Chromium-based browser.