event keyCode in firefox fix