Turn the auxiliary key toward the front to lock, toward the back to unlock.
To lock
All doors lock automatically when the driver's door is locked using the auxiliary key.
To unlock
The driver’s door unlocks when the auxiliary key is turned briefly to the unlock position and then immediately returned to the center position.
All doors unlock when the driver's door is unlocked and the auxiliary key is held in the unlock position for one second or longer.

Door Locks
Locking, Unlocking with Request Switch, Door Handle (With the advanced keyless
function)Mazda 6 Owners Manual: Pcm configuration
1. Connect the WDS to DLC-2.
2. Set up the WDS (including the vehicle recognition.)
3. Select Module programming.
4. Select Programmable module installation.
5. Select PCM and perform procedures according to directions on the WDS
screen.
Note
If PCM CONFIGURATION is successful, the PCM ...
Mazda 6 Owners Manual: Distance Recognition Support System (DRSS) (Some models)
The Distance Recognition Support System (DRSS) measures the distance between
your vehicle and a vehicle ahead using a radar sensor (front) while the vehicle
speed is about 30 km/h (19 mph) or faster, and if your vehicle approaches a vehicle
ahead more closely than what is appropriate for maint ...