Hyundai Elantra MD/UD: Ignition key interlock system
The ignition key cannot be removed unless the shift lever is in the P (Park) position. Even if the ignition switch is in the LOCK position, the key also cannot be removed.
If your vehicle is equipped with ENGINE START/STOP button, the button will not change to the OFF position unless the shift lever is in the P (Park) position.