a key is used for opening a locked door