I see. It seems to be typing the last character N times where N is the length of th word. (e.g. "word" becomes "dddd")
Typing one character at a time works though. Must be something to do with keydown vs keyup.
I'll run it through the debugger to see what's going on.
UPDATE: I think the problem is that the vkeybd is pushing the keyboard events too fast for the game scripts to read them. This is sort of the same problem as the gobliiins right-click.
Adding a delay fixes it but there's no pretty way of handling this without refactoring the Event code like I planned.
In the meantime, the hack is here:
https://github.com/tsoliman/scummvm/tre ... workaround