quit the application hitting key 'q'