Leave field when press enter but don't show success message

hi, fast question, I just want to leave the form field when I press enter but at the same time don’t show the success message. is there any option? i’m using a form field for search.

u oh! i think i uploaded the wrong gif.

here’s the correct gif

ezgif-2-3a1112d26941