I think the problem is that I'm pressing enter to progress the text without necessarily waiting for the text to finish writing, so the input is registering multiple times.