If they had gone for a walk, they .......... (switch) the lights off.
Switching the lights off
Thy would have switched