fix keycode on firefox