Macros evaluate left to right so non-default conditions, such as modifiers, need to come first.
#showtooltip
/cast [mod:ctrl,harm] [mod:ctrl,@targettarget,harm,nodead] [mod:ctrl] Vampiric Embrace; [harm] [@targettarget,harm,nodead] [] Shadow Word: Pain
#showtooltip
/cast [mod:ctrl,harm] [mod:ctrl,@targettarget,harm,nodead] [mod:ctrl] Mind Blast; [harm] [@targettarget,harm,nodead] [] Mind Flay
My Priest macros are here if you want to see how I’ve consolidated my keys.