fixing bug with keypress on firefox language scramble