in reply to Is there any way to record keystrokes.

Of course. Check that STDIN is a terminal, and then read it, and write the results to a file.
  • Comment on Re: Is there any way to record keystrokes.