Added option to exit the game with the ESC key, added confirmation of the validity of the code entered.