Comment by cyode
Most text composition involves backspaces and cursor movement. This script simulated neither afaik, though I’m sure it could have without much more difficultly.
Probably you will need to track many signals like those and use a model that takes them all into account.