The moonroof can be opened or closed electrically only when the ignition is switched ON.

WARNING
Do not let passengers stand up or extend part of the body through the open moonroof while the vehicle is moving:
Extending the head, arms, or other parts of the body through the moonroof is dangerous. The head or arms could hit something while the vehicle is moving. This could cause serious injury or death.
Make sure the opening is clear before closing the moonroof:
A closing moonroof is dangerous. The hands, head, or even neck of a person, especially a child, could be caught in it as it closes, causing serious injury or even death.
NOTE
Before washing your Mazda, make sure the moonroof is completely closed so that water does not get inside the cabin area.
After washing your Mazda or after it rains, wipe the water off the moonroof before operating it to avoid water penetration which could cause rust and water damage to your headliner.
Power Window Lock Switch
Tilt OperationMazda 6 Owners Manual: Windshield removal
1. Remove the rearview mirror.
2. Remove the cowl grille.
3. Remove the headliner.
4. Apply protective tape along the edge of the body to protect it from
damage.
5. Apply protective tape to the dashboard to protect it from damage.
6. Cut the lip of the windshield molding using a razor.
War ...
Mazda 6 Owners Manual: Door switch removal/installation
Front
1. Disconnect the negative battery cable.
2. Remove in the order indicated in the table.
3. Install in the reverse order of removal.
Rear
1. Disconnect the negative battery cable.
2. Remove in the order indicated in the table.
3. Install in the reverse order of removal. ...