Good catch. It turns out that I *don't* need to simulate keystrokes at all for that to work (which is why it didn't care that DOM_VK_: doesn't exist!)

I should have re-evaluated that code once I discovered that I was having timing issues more than anything. This is removed in my local copy.