Made submit depend on keyup instead of keydown

Saves us all from the troubles of a stuck Enter key.