Wait for key press before exiting