Verify that the ignition key cannot be pulled out except in P position.
Mazda 6 Service Manual: Exterior lighting system
...
Mazda 6 Service Manual: Transmitter battery replacement
1. Insert a small screwdriver into the slot and gently pry open the
transmitter.
2. Press the portion of the battery indicated by A and remove the battery.
3. Install a new battery (CR2025) into the front portion of the holder with
the positive pole (+) facing up. Press on the B portion of ...