If TCC is waiting for the program to exit, the KEYSTACK won't be executed until the program has finished. See that with a simple example:
start /wait notepad & beep
You don't get a beep until you close notepad. Run the KEYSTACK first with a sufficient delay (/W) so that the program is up and running when the keys are sent. This starts notepad and puts an 'e' in it.