Skip to main content
1 of 2
epascarello
  • 207.8k
  • 20
  • 206
  • 246

You need to cancel the action.

event.preventDefault(); 

BUT I believe you can only kill the form submission with keydown, not key up.

epascarello
  • 207.8k
  • 20
  • 206
  • 246