a key is used for opening a lock