Take what's in the clipboard and simulate key presses as if it's coming from your keyboard.
Download the debug file to just run it: https://github.com/jtmckay/ClipboardToKeystrokes/raw/master/ClipboardToKeystrokes/bin/Debug/ClipboardToKeystrokes.exe
Pass your typing test with flying colors!
I made this to create an entity relationship diagram using https://www.lucidchart.com/. I wrote scripts to scrape a MongoDB but needed a not so tedious way of loading the output of my scripts into Lucidchart.