rest phase and ESC key quit