The sunshade can be opened and closed by hand.
The sunshade opens automatically when the moonroof is opened, but must be closed by hand.

CAUTION
Jam-safe Moonroof
Security SystemMazda 6 Owners Manual: Operation
System triggering conditions
The horn sounds intermittently and the hazard warning lights flash for about
30 seconds when the system is triggered by any one of the following:
Unlocking a door with the key, door lock switch, or an inside door-lock
knob.
Forcing open a door, the hood or th ...
Mazda 6 Owners Manual: General procedures
PRECAUTION (FRONT AND REAR AXLE)
Wheel and Tire Removal/Installation
1. The removal and installation procedures for the wheels and tires are not
mentioned in this section. When a wheel is removed, tighten it to 88-118 N·m
{9.0-12.0 kgf·m, 65.0-87.0 ft·lbf}
Brake Line Disconnection/Connecti ...