a key is used for locking.