close modal on enter key
fixed behaviour of keyboard shortcuts in modal