If the selector lever will not move from P using the proper shift procedure, continue to hold down the brake pedal.
1. Remove the shift-lock override cover using a cloth-wrapped flat head screwdriver.
2. Insert a screwdriver and push it down.

3. Press and hold the lock-release button.
4. Move the selector lever.
Take the vehicle to an Authorized Mazda Dealer to have the system checked.
Shift-Lock System
Transaxle RangesMazda 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.
...
Mazda 6 Owners Manual: Stabilizer control link inspection
1. Remove the stabilizer control link from the vehicle.
2. Inspect for bending and damage.
3. Measure the ball joint starting torque.
(1) Rock the ball joint stud side to side 10 times.
(2) Rotate the ball joint stud 10 times.
(3) Measure the starting torque using a suitable allen so ...