enable submit button on keydown instead of keyup

when users were hitting enter too fast after entering the code, enabling
the button wasn't fast enough with keyup (so enter did nothing).