
A mechanical button closes two little metal contacts. They can touch, spring apart, and touch again before settling. To your finger it’s one press. To a circuit watching the signal quickly enough, those bounces can look like several presses in a row.
How does equipment keep from counting them all?
The electronics can wait until the signal stays on or off for a short time before accepting it as a new press. A circuit can also smooth the brief changes before they reach the part doing the counting. This is called debouncing.
Is that why a worn key sometimes types a letter twice?
Wear or dirt can make the switch less consistent. A repeated character can also come from software or from a key being held down. Contact bounce is one reason the key’s raw electrical signal may differ from what your finger did.
For more on how switches make and break electrical connections, see Basics of Electric Utilities 101.