fix(core): guard IME composition in editable command-key handlers (#4908)