Fixes 2 bugs:
1) BS key cannot remove the last composition char.
2) ESC key cannot correctly transfer from HANGJA mode to HANGUL.