Basic mechanics of key locks and combination locks.