Fixed broken key events in Firefox