Allow the user to cancel pin entry and lock the door by hitting esc
Fixed state machine so it resets correctly