Oh, making ourselves a keystroke recorder eh?...
I have heard of this being done, but unfortunately don't quite remember how to do it.
If you go to Microsoft's website, you may be able to find information on how to do it. Otherwise, contact NI, they may be able to help you. Start at ni.com/ask.
Good luck, and if you find out, be sure to post it here.