Added closing the application on pressing Escape key