Files can only contain bytes, not keystrokes. So, in addition to finding a method of obtaining the keystrokes (Term::ReadKey?), you need to decide how you want to store them.
Update: I interpreted your question rather literally, but you didn't give us much to go on.
In reply to Re: Appending keystrokes to a text file
by ikegami
in thread Appending keystrokes to a text file
by rsriram
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |