From time to time, after driving for 10-20 minutes, my key will get stuck in the ignition. I can turn the car off, but it gets stuck 1/2 click before you can take it out. I can put the car into drive and then back into park and that will usually get it to release the key.
The car should still be under warranty. Take it to the dealer, it should not do this, obviously.