preventDefault on enter key to avoid a form submit