How a lock works

We are often asked how a lock works. This shows the basic operation.