Document keystrokes in a file