How to? Capture keystrokes?

Apr 2, 2011
1,236
2
52
North Carolina, USA
Is there a utility that will capture keystrokes, write them to a key file, to be used for repeated usage with

start AProgram & keystack /r file.key

??