recent-keys
recent-keys is a built-in function in `C source code
'.
(recent-keys &optional INCLUDE-CMDS)
Return vector of last few events, not counting those from keyboard macros.
If INCLUDE-CMDS is non-nil, include the commands that were run,
represented as events of the form (nil . COMMAND).