Change KeyboardEvent.initKeyEvent to KeyboardEvent.initKeyboardEvent