Escape key exits the program