Prevent enter key from submitting the form

Forms got submitted when selecting an option with the Enter key because
the "keyup" event fired after the form submit event. Changed listener
to "keydown".