Variable: real-last-command

Same as `last-command', but never altered by Lisp code.
Taken from the previous value of `real-this-command'.