escape on mouse button or as macro

is it possible to make escape an option for mouse right clickor as a macro, so it can be added to the toolbar?SolidworksGeneral