close a modal with enter, equivalent to OK