fix firefox compat with keypress

keypress is literally the worst