Added support for quitting the app with the escape key