only allow exit from a maze requiring a key when the explorer has the correct key