Ignition Key Modes
Depending on the vehicles specification:
The sunroof ECU controls operation of both sunroofs and will allow sunroof operation for a period of 44 seconds after the ignition switch is moved to the off position.
On some models if the time is less than 44 seconds and the drivers door (or any door on some models) is opened the sunroof ECU will disable the function of the sun roofs.
On some models the sunroof ECU will disable the sunroofs as soon as the ignition is turned off.
On all models the sunroofs will not operate while the ignition key is turned to the cranking position III.