Close modal method on esc keyup