you should use the ``submit`` event of the form instead, so that it works also when the submission is triggered by a keyboard