In my GUI, I want every keyboard key (at least the letters, numbers and symbols), when pressed, to result in the next letter of my custom text being displayed, rather than resulting in the typed key being displayed.
For instance, if I set the text to be:
Bash is an sh-compatible command language interpreter
and I type:
I want to see appearing:
Bash is an sh-compatible comma
(and the next key pressed, regardless of which it is, should display "n".)
Which strategy can I use to do a map between any typed key and a custom text?