Scortch while moving Macro

Is it possible to make a macro that uses scortch while moving along with other instant casts damage spells but not when standing still?

I was thinking somehow adding modifier keys to scortch somehow so that if you were pressing one of the movement keys along along with the normal macro key it would put scortch in the macro and since it and the instant casts are the only ones that you can cast while moving it would surfice, but I cannot make it work.