Fix the case for you need to press ESC twice to delete uncommitted text.
The first ESC makes uncommitted kanji change back to hiragana, the
second ESC deletes them.
Fix for Firefox. We do not watch keydown events for Firefox.
Fix for cases that texts are inputted after being idle and before timer fires.
Rename variables text, oldText to val, oldVal.