now we keep track of the consumed characters of
a step by step creation of word, and we put them back when pressing enter
if any