I use the forward and back buttons for this, but I've got them bound to keyboard shortcuts.
⌃B == Back
⌃F == Forward
Select the Previously Edited Macro
These AppleScripts go in KM's Execute an AppleScript actions with the text-script option.
-Chris