add support for resetting the app with escape key