Question: how keyboard works in computer?
Answer: The key matrix is a grid of circuits underneath the keys. ... When you press a key, it presses a switch, completing the circuit and allowing a tiny amount of current to flow through. The mechanical action of the switch causes some vibration, called bounce, which the processor filters out.