The lock on most front doors is a row of spring-loaded pins. See why only one key shape lets it turn.
Each pin is cut in two pieces. The lock turns only when every cut lines up with the edge of the plug, called the shear line.
A key is a row of ramps that lifts each pin to its own height. The idea goes back to ancient Egypt, and the modern form dates from the 1860s.
Keep watching