01

Every key is a switch

Under each key is a switch. When you press the key, the switch closes and lets electricity flow; when you let go, a spring or rubber dome pushes the key back up and the switch opens.

Many keyboards use a thin sandwich of plastic sheets with printed circuits. Pressing a key squeezes a rubber dome that pushes two conductive spots together. Mechanical keyboards give each key its own small spring-loaded switch, which many typists and gamers enjoy for its click and feel.

02

The key matrix

Wiring every key separately would need over a hundred wires. Instead, keys are arranged in an invisible grid of rows and columns, called a key matrix. Each key sits where one row wire crosses one column wire, like a seat in a cinema identified by its row and number.

With only a couple of dozen wires, the keyboard can check every key.

03

A chip that scans

Inside the keyboard is a small processor called the keyboard controller. Many times every second, it sends a signal along each column in turn and checks which rows receive it. If a key is pressed, its switch connects its row and column, so the controller knows exactly which key it is.

Switches can flicker on and off for a few thousandths of a second as they close, a little like a bouncing ball. The controller ignores this ‘bounce’, so one press counts as one letter.

04

From key to letter

When the controller finds a pressed key, it sends a code, called a scan code, to the computer through a USB cable or a wireless link such as Bluetooth. The code does not say ‘A’; it says ‘the key in this position’.

The computer’s software then decides what that key means, depending on the language and layout chosen. That is how the same keyboard can type in English, Arabic or French simply by changing a setting.

05

Layouts for every language

Most English keyboards use the QWERTY layout, named after the first six letters on the top row, which was inherited from typewriters. French keyboards often use AZERTY and German keyboards QWERTZ.

Arabic keyboards show Arabic letters alongside Latin ones, and typists switch between them with a key combination. Phones show keyboards on touchscreens, using the screen’s sensors to tell which virtual key was tapped.

06

Built for comfort

Keyboard designers think carefully about how far keys travel, how hard they are to press and how they are arranged. Some keyboards are split or curved to keep wrists in a natural position.

Backlit keys, made with small LEDs under translucent letters, help people type in dim light, and many keyboards for gaming can be programmed with special shortcuts.

07

Why it is a beautiful story

08

Questions people ask

How does a keyboard know which key is pressed?

Each key sits at the crossing of a row and column wire. A chip scans the grid and finds where the circuit is closed.

What is a scan code?

A scan code is the number a keyboard sends to identify which key position was pressed; the computer then turns it into a letter or command.

Why is it called QWERTY?

The name comes from the first six letters on the top row of letter keys in the common English layout.

FOLLOW THE EVIDENCE

Sources & further reading

Sources checked 2 December 2026. Company names are used only to describe their work; Canvas of Knowledge is independent and these organisations do not endorse this website. Illustration: original AI-generated illustration (Adobe Firefly), an artist’s impression rather than a photograph.