UI: add keyboard listener for 'q' to quit application.