fix inline keypress bug in fire fox