Create two different macros.

Then put them on different locations on your hotbar assigned to different key combinations.