When there is only one single-line text input field in a form, the user agent should accept Enter in that field as a request to submit the form. –HTML Spec
I was looking into a bug that an embedded form would die due to the security restriction when you press enter inside the input. It turns out this random behavior was causing the issue 🤷
(I concede that we should handle form submit properly though)