Bug 1027670 - Add IME that handle LaTeX

This will scale very bad. As soon as you add new functions or symbols you will need yo expand the `case`. You should use a map or extra info attached to the key or maybe a small parser to detect where to set the cursor.