a key is turned.