How to? Capture keystrokes?

Apr 2, 2011
1,211
2
51
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

??