If the selector lever will not move from P using the proper shift procedure, continue to hold down the brake pedal.

Take the vehicle to an Authorized Mazda Dealer to have the system checked.
Shift-Lock System
Manual Shift ModeAir Intake Actuator Inspection [Manual Air Conditioner]
1. Connect battery positive voltage to air intake actuator terminal B (or C),
connect terminal C (or B) to ground, and then verify that the air intake actuator
operates as shown in the table.
If the operation condition is not normal, replace the air intake actuator.
...
Inside Trunk Release Lever
(4-Door)
Your vehicle is equipped with an inside
trunk release lever that provides a means
of escape for children and adults in the
event they become locked inside the trunk.
No matter how careful adults might be
with keys and locking their cars, parents
should be aware that children may be
tempted ...
Turn and Lane-Change Signals
The ignition must be switched ON to use
the turn and lane-change signals.
Turn Signals
Move the signal lever down (for a left
turn) or up (for a right turn) to the stop
position. The signal will self-cancel after
the turn is completed.
If the indicator light continues to flash
after a turn ...