1. Home
  2. Glossary
  3. Debounce

What Is Debounce?

Debounce (Debounce time, Switch debounce): The short delay a keyboard or mouse uses to ignore switch contact bounce, so one press registers exactly once.

Definition

When the metal contacts in a switch close, they physically bounce for a fraction of a millisecond, making and breaking the connection several times. Debounce is the logic in a keyboard or mouse that waits a short time — typically a few milliseconds — before accepting another press, so one press counts once.

When Debounce Isn’t Enough: Chatter

As switches wear or get dirty, they bounce for longer. If the bounce lasts longer than the debounce time, the extra contact gets through as a second press:

Adjusting Debounce

Many gaming mice and keyboards (including those running QMK or VIA firmware) let you raise the debounce time. A longer debounce hides mild chatter, at the cost of slightly limiting how fast the same key or button can be repeated. Optical and magnetic switches don’t bounce the same way, so they need little or no debounce.

The chatter and double-click tests time each press to catch bounce that slips through.

Measure It

Related Guides

Part of the TapTest glossary · More in keyboard tests.