Commands entered after pressing M-x can be viewed using the up/down arrow keys.
How can I get a list of all the commands including menu bar invocation, commands triggered using mouse clicks, etc. in Emacs?
I've used mwe-log-commands to make screencasts. It shows events and the commands they trigger as you work in Emacs.
I've just forked it and made it into a proper minor-mode and global-minor-mode along with some other improvements as command-log-mode.
Give it a shot and file issues against me if the documentation is unclear or if you find any bugs.