The editor uses textInput events rather than keydown.