Fix FF test failures due to initKeyboardEvent->initKeyEvent