Shift-lock system
For your safety, the Intelligent Variable Transmission (IVT) has a shift-lock system which prevents shifting the transmission from P (Park) into R (Reverse) unless the brake pedal is depressed.
To shift the transmission from P (Park) into R (Reverse):
1. Depress and hold the brake pedal.
2. Start the engine or place the ignition switch in the ON position.
3. Move the shift lever.
Shift-lock release

If the shift lever cannot be moved from the P (Park) position into R (Reverse) position with the brake pedal depressed, continue depressing the brake, and then do the following:
1. Place the ignition switch in the LOCK/OFF position.
2. Apply the parking brake.
3. Carefully remove the cap (1) covering the shift-lock release access hole.
4. Insert a tool (e.g. flathead screwdriver) into the access hole and press down on the tool.
5. Move the shift lever.
6. Remove the tool from the shiftlock override access hole then install the cap.
If you need to use the shift-lock release, have your vehicle inspected by an authorized HYUNDAI dealer immediately.
Transmission ranges
ParkingHyundai Elantra AD (2016-2020) Service Manual: Stop Lamp Switch Components and Components Location
Components
1. Stop lamp switch2. Brake pedal member assembly3. Return spring4. Bolt5. Brake pedal arm assembly
...
Hyundai Elantra AD (2016-2020) Service Manual: Description and Operation
Description
The SMART KEY system is a system that allows the user to
access and operate a vehicle in a very convenient way. To access the
vehicle, no traditional key or remote control unit is needed.
The user carries a SMART KEY FOB which does not require any
conscious actions by the user ...