
Computer keyboards
Last updated: June 2, 2008.
Tap tap tap! Tap tap tap!
That's the sound of someone thinking aloud in the 21st century, which
typically means banging out words in a blog or an email or
word-processing an essay or a forum post.
Computer keyboards are generally quicker to use than old-fashioned
typewriter keyboards,
though they're still no match for dictating your documents with voice recognition software.
Have you ever stopped to wonder what your keyboard's like inside?
You might be surprised to find it's just a load of electrical switches.
Let's take a closer look!
Photo: A typical low-cost computer keyboard.
Each key is nothing more than a switch: it closes an electrical circuit
when you
press it down and opens the circuit when you release it again.
A word of warning!
You've heard me say this before. Taking things to bits is a brilliant
way
to learn how they work but, for a whole bunch of reasons, it's often dangerous,
difficult, or ill-advised. In the case of computer keyboards, there's
not a lot of danger,
but there are a couple of hundred tiny pieces that fall out very
easily.
If you drop the keyboard while you're messing about with it, expect to
find yourself taking at least a couple of hours to put it all
back together again. You have been warned!
1. What's under the keys?

Pull a key off the keyboard and you can see roughly how it works.
There's a little hole in the plastic base and the keyboard has a long
round bar the same shape. When you press the key, the bar pushes down
through the hole to touch the contact layers below.
Inside the hole, there's a little tiny piece of rubber (you can't see
it in this photo) that stops the key moving down and pushes it back up
when you release it. This is what gives the spring to the keys.
2. What's under the keyboard?

Take off the keyboard's bottom panel and you can see how it all
works from beneath. You can see the transparent plastic contact layers
that detect keypresses and (through those layers) you can see the round
bars poking the keys down from above. The green rectangle at the top
contains three small LEDs that activate the
indicator lights for "Num lock", "Caps lock", and "Scroll lock".
3. How do the keys press down?

Peel back the electrical contact layers and you can see the bottom
of the keys and where they press down. Balancing on my fingertip, you
can see one of the little rubber pieces that makes the keys bounce up
and down. Notice the pattern of electrical tracks on the contact
layers. Notice also the cable coming out of the top of the keyboard,
which carries electrical signals from the keyboard to your computer's USB port (or PS/2 port on older machines).
4. How do the contact layers work?

This is the magic part of a keyboard. There are three separate
layers of plastic that work together to detect your key presses. Two of
them are covered in electrically conducting metal tracks and there's an
insulating layer between them with holes in it. The dots you can see
are places where the keys press the two conducting layers together. The
lines are electrical connections that allow tiny electric currents to
flow when the layers are pressed tight to one another by a key moving
down from above.
4. How does it all work together?
When you press a key, the top and bottom contact layers come together and the keyboard sends a signal to your computer—just like this...

No keyboards were harmed during the making of this article. Well,
not much. Oh okay, just a little bit, but they still work fine.