Keyboard Shortcuts > History panel
Open the History panel
Shift F10
Start/stop recording command
Control+Shift+X
Command+Shift+X
Play recorded command
Control+P
Command+P