a key is used for opening a door