Tweaked form submission to work on the enter key.

Note that Prevent Default must be called to prevent issues with the
form invocation.