2000 gmc ignition

I have had my 2000 gmc jimmy since july 2007. it runs well, minus a few quirks. the latest being, when i shut my car off, it locks the key in the ignition and won’t let me turn it far enough towards me to pull it out. i end up having to turn it on and off a few times, jiggle the steering wheel and pull it in and out of gear to get it to release the thing. ANY insight would be GREAT!!!