Add a test for submitting a form on a modal with the enter key.

This is a basic test for the code introduced in
commit 8477d976890aba5b2659586f663f4aae3472bdf8.