Added escape key as way to quit in more states