Modified IMEAdapter to control LatinIME keyboard.