This library started out as a simple wrapper for Oracle's java.awt.Robot package but it evolved out of hand into a library of general utilities. Some of these functions appear to duplicate functionality already present in B4J however this library is designed to be used in both UI apps and non-UI...
1 We start with a certain text (entered by the user or from another source)
2 The user types any key and the program rewrites the original text one character with each keystroke, whatever it is.
3 is that what you want?
Pseudo code:
text="this is a text test"
do while length(text)
get keyboard-input
prints next character(text)
end do