When you press '6', we insert '...6#######' instead.
After you press '6' and we insert that whole string, the cursor is at the end of the input.
But at the beginning of the next keypress event, the cursor moves back to immediately after the '6'!
This doesn't happen when the string inserted does NOT contain the number itself (e.g., when 4 is overridden
by *****).