The keyup event triggers blur and focus, which will interrupt IME on MacOS. Tried with Firefox, Chrome and Safari. But browsers on windows work fine.