Have a macro for instant attacks, another for your regular rotation, counterspell/stun, another for AOE.

Just make a macro with castsequence for each attack type.