FF keypress/keydown bugfix