initKeyboardEvent doesn't clear CapsLock state