fixed keypress not working on firefox