we can pervent it on the form
<Form onKeyDown={(e) => { if (e.key === 'Enter') { e.preventDefault(); } }} >