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: Electrical troubleshooting tools
Jumper wire
A jumper wire is used to create a temporary circuit. Connect the jumper
wire between the terminals of a circuit to bypass a switch.
Caution
Do not connect a jumper wire from the power source line to a body
ground. This may cause burning or other damage to wiring harnesse ...
Mazda 6 Owners Manual: Advanced Keyless Entry System
WARNING
Radio waves from the key may affect medical devices such as pacemakers:
Before using the key near people who use medical devices, ask the medical device
manufacturer or your physician if radio waves from the key will affect the device.
The advanced keyless function allows you to lock/u ...