close modals on enter keystroke