Enhancement: Added editMacro function and keymapping