When the player gets the key. So, if he comes within 50 quints, he picks up the key and can unlock the door.