Accepts spacebar key code to exit.