How does a key board work?
- A keyboard has a key matrix and a microprocessor.
- The key matrix is a grid of circuits underneath the keys.
- The circuit for each key is broken at the point below the key. It’s like a switch. The switch is off.
- When a key is pressed, the circuit is closed. The switch is on.
- When the microprocessor detects that a circuit is closed, it looks up the ASCII code of the key and send it to the computer to which it is attached.
- The ASCII code of each key is a binary number.