Kidcyclopedia All the questions
How things are made A see-through door lock showing a row of small pins resting on the jagged edge of a key, every gap lined up in one neat straight line; no letters, numbers or words anywhere in the picture.

Illustration, made with AI

How do keys open locks?

A key is a secret code cut into metal!

Inside the lock, little pairs of pins block it from turning. The bumps and valleys on the key push each pin to exactly the right height.

When every pin lines up, the lock can turn!

Hear it read aloud
The question and the answer, read by the narrator

Tell me more

Look closely at a key and you'll see V-shaped valleys along its edge, evenly spaced. The depth of each valley is one part of the code. Inside the lock, springs push the pins down into the valleys. If a valley is too shallow, a pin sticks up and jams the lock. If it's too deep, the pin above drops down and jams it. Only the right key lines up every gap between the pins at the edge of the part that turns, called the shear line. Locks with pins may go back about 4,000 years, to wooden locks in ancient Egypt!

Hear this part

Words to know

  • shear linethe line inside a lock where the turning part meets the part that stays still

Try it at home

Lay two different keys side by side. Can you see how their bumps and valleys are different? Each pattern is a different code.

Keep going

For grown-ups

Where this comes from

Every fact on this card comes from these pages, which were fetched and read. Anything we could not source was left out.

About the picture

The illustration was drawn by an AI image model from a description we wrote and checked against the card. It is a picture-book drawing, not a photograph.

Open this card in Kidcyclopedia

Kidcyclopedia is a picture-card encyclopedia for curious kids. Every card is read aloud, and every card leads to the next question. Try it free, in any subject.