How can I prevent "enter" after on change

How can I prevent "enter" after on change

Hi people,

I have a input with a "on change" and a delete button with "on click" in one row.

When the user try to enter in the input the delete button will activate.

How can I prevent this?