use a key to open a lock