Firefox fix: initKeyboardEvent is deprecated and not supported by Firefox.
Fix issue Firefox: the detail parameter is not optional.