Keyboard keys work by completing an electrical circuit when pressed, sending a signal to the computer.
Here's a breakdown of the process:
- Key Matrix: Underneath the keys is a key matrix, which is essentially a grid of circuits.
- Broken Circuits: In most keyboards (excluding capacitive models), each circuit in the grid is initially broken at a point located directly beneath each key.
- Pressing a Key: When you press a key, you physically push down on it.
- Completing the Circuit: This downward pressure forces a switch to close, which completes the electrical circuit.
- Current Flow: With the circuit now complete, a small electrical current is able to flow through it.
- Signal to Computer: This flow of current generates a signal. The keyboard controller detects the specific circuit that was closed. Because each key corresponds to a unique intersection on the grid, the controller knows exactly which key you pressed.
- Character Display: The keyboard controller sends this information to your computer, which then interprets the signal and displays the corresponding character on your screen.
In summary, pressing a key completes a circuit, which sends a signal to the computer, telling it which key was pressed.