view-lossage
view-lossage is an interactive compiled Lisp function in `help.el'.
It is bound to C-h l, <f1> l, <help> l.
(view-lossage)
Display last few input keystrokes and the commands run.
To record all your input, use `open-dribble-file'.