There are multiple packages to track your commands / keystrokes inside #emacs:
view-lossage
:: this command is built-in, to show the last commandscommand-log-mode
:: package which shows a live history of keys / commands in a separate window. https://github.com/lewang/command-log-modeshowkey.el
:: Shows keys and other events as you use them. https://www.emacswiki.org/emacs/ShowKey