As you can see I have a very small from. The problem Is when I press enter the form submit.
I tried to fix it by using wire:keydown.enter.stop but the problem is not solved.
@alisanie do you have a button with type submit within the form? I tried the same code as you shown above locally, and it is not submitting the form on enter, unless I put a submit button.
It's based on the response of @alisanie but with an added condition: if the pressed key is "Enter" and the target element is not a , it prevents the form submission. Otherwise, it allows the Enter key to function normally.