close model through Esc key