Bug 1027670 - Improve LaTeX IME source code

- Avoid enumerate compositeKey
- Improve jumps and backspace