We've all had theories. Perhaps it's a braille-like series of bespoke bumps, or some kind of contorted groove. The animated GIF below, however, demonstrates in the simplest fashion exactly how keys open doors:
Mystery solved. Go home everybody, and enjoy the fact that you now know the mechanism allowing you to get inside.
H/t to Bits & Pieces