← Back to the lesson

From a key press to a letter on screen

Input, work, output in a few hundredths of a second. Slow it down and follow one letter from your finger to the screen.

Interactive 3D keyboard with its keys lifted to show the wire grid underneath, typing one letter onto a screen

This is the text version. With JavaScript on, it’s a 3D drawing you can play, slow down and turn.

Step by step

  1. Press. You press a key. Under it is a switch. On a desktop keyboard like this one, the switch closes about 2 millimeters down, halfway. That joins two wires that cross under the key: one running along the row and one running down the column.
  2. Scan. The keyboard’s own small chip sends power down one row at a time and listens on every column. When it powers the row your key is on, power comes through on your key’s column, so now it knows which key. It checks again a few milliseconds later to be sure.
  3. Send. The chip doesn’t send a letter. It sends a number that stands for that key, as ones and zeros down the cable. The computer asks the keyboard for news every few milliseconds.
  4. Draw. The processor works out which letter that number means and the app you’re typing in draws its shape in pixels. The screen shows it the next time it refreshes. Key in, number processed, letter out: three of the four jobs in one key press.

From the lesson

What does every computer do, from a calculator to a data center?

Takes information in, works on it, keeps it and puts it back out. Mark’s gaming PC does it with a giant graphics card and a calculator does it with a coin battery, but neither one does a fifth thing. Rob’s sticky note holds up.

Lesson 1.2: Four Jobs

More 3D drawings

All How Computers Work lessons · See it in 3D