Shift target player

Ok, I am having trouble creating a macro, my plan is to cast Power Word: Shield on myself when I hold shift but on my target otherwise. What I have so far does not work, anyone that could fix it?

#showtooltip
/cast [nomod] Power Word: Shield
/cast [mod:shift, @player] Power Word: Shield