a key is inserted into a lock