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: Battery inspection
Battery
Inspect the battery in the following procedure.
Test load chart
Battery positive voltage with load
Back-up Current
1. Verify that the engine switch is at OFF and that the key has been removed.
2. Disconnect the negative battery cable.
3. Measure the back-up current between the n ...
Mazda 6 Owners Manual: Ignition switch inspection
1. Disconnect the negative battery cable.
2. Remove the column cover. (See COLUMN COVER REMOVAL/INSTALLATION)
3. Disconnect the ignition switch connectors.
4. Inspect for continuity between the ignition switch terminals using an
ohmmeter.
If not as specified, replace the ignition switch.
...