So if I saw a large weight plummeting down onto you, I could choose to push you out of the way or let you die. Neither would be immoral because it's not me killing you.
In the case of the trolley then, none of the acts are immoral, because it's not me that's killing you.
In the case of the trolley then, none of the acts are immoral, because it's not me that's killing you.