Ok so I use this for Fire ward and Frost ward and it works
/run local x = IsShiftKeyDown(); if x == nil then CastSpellByName("Fire Ward") else CastSpellByName("Frost Ward"); end;
But when I use it for Ice barrier and Mana Shield it does not work
/run local x = IsShiftKeyDown(); if x == nil then CastSpellByName("Ice Barrier") else CastSpellByName("Mana Shield"); end;