Add a keypress event to handle keyboard form submission