API:SpellStopCasting

Stops a pending spell (usually indicated by wand icon when you've used a spell that is not applicable to currently selected target).

SpellStopCasting;

See also: API:SpellTargetUnit API:SpellIsTargeting