Anakin 's intervention in the fight between Windu and Palpatine occurred before Windu could kill Palpatine .
Before Windu is about to kill Palpatine , Anakin intervenes and disarms Windu , allowing Palpatine use his Force lightning on him , forcing him out of a window to his death .
Mace Windu