add reacvtion on esc button for modal