Similarity between a lock and a typewriter: have keys