a key can be used to lock and unlock a door