closing with ESC key