key is stuck in the ignition while the car is running. my car will not turn off on 2008 Chevrolet Cobalt

1st time problem. key is stuck in the ignition and my car will not turn off

3 answers
key may be slightly bent - had similar problem
I have heard of these having bad ignition switches in them, dealer must replace it because programming for keys will need to be done.
Had same thing happen. Had to replace switch