Skip to content
TopBuilds.gg logo

Macro lessons · Lesson 3 of 5

TopBuilds.gg

Lesson 3 Modifier keys

One button, a different spell while you hold Ctrl, Shift or Alt.

WoW Macro Modifier Keys

The mod condition is true while you hold a modifier key at the moment you press the macro. It is the simplest way to fit two or three spells on one button.

By TopBuilder · Updated November 24, 2026

Syntax

62 / 255 characters
/cast [mod:ctrl] Spell Two; [mod:shift] Spell Three; Spell One
  • [mod:shift], [mod:ctrl] and [mod:alt] test one key.
  • [mod:shift/ctrl] is true when you hold either key.
  • [mod] is true when you hold any modifier, and [nomod] when you hold none.

Why a modifier does nothing

  • A key binding for the exact same combination wins over the macro. If Shift plus your key is bound to something on the Key Bindings page, the macro never sees the Shift. Clear that binding.
  • Alt is the default Self Cast key, so a macro that uses Alt may cast on yourself as well. Ctrl and Shift are usually safer.
  • The game reads the key when you press the button, so hold it first and then press.

Examples

Two spells on one key

Polymorph while holding Ctrl, Frostbolt otherwise.

50 / 255 characters
#showtooltip
/cast [mod:ctrl] Polymorph; Frostbolt

Three spells on one key

Ctrl and Shift each pick a different spell.

76 / 255 characters
#showtooltip
/cast [mod:ctrl] Polymorph; [mod:shift] Counterspell; Frostbolt

Try it yourself

Try it yourself

76 / 255 charactersTry an example:
  1. #showtooltip

    Shows the icon and tooltip of the spell the macro would cast, so the button changes with your conditions.

  2. /cast [mod:ctrl] Polymorph; [mod:shift] Counterspell; Frostbolt

    Casts Polymorph when you hold Ctrl; otherwise casts Counterspell when you hold Shift; otherwise casts Frostbolt.

    /cast
    Casts
    mod:ctrl
    You hold Ctrl
    Polymorph
    Spell name
    mod:shift
    You hold Shift
    Counterspell
    Spell name
    Frostbolt
    Spell name

Tested in the game

WoW Forever

2 of 2 parts here were tried in the WoW Forever client.

  • /cast · tested
  • [mod] · tested

WoW Retail

2 of 2 parts here were tried in the WoW Retail client.

  • /cast · tested
  • [mod] · tested

FAQ

Why does Ctrl or Shift not work in my macro?

A key binding for that exact combination takes priority over the macro. Clear the binding on the Key Bindings page.

Can I use Alt in a macro?

Yes, but Alt is the default Self Cast key, so spells may land on you. Ctrl and Shift avoid that.