key would not turn in ignition until shifted to neutral

#1
I own a 2001 Corolla LE. This morning I got in the car and put the key in but it would not turn out of
lock position. I tried depressing the brake and no help. So, I tried to shift the car to neutral and back to
park, and then the key unlocked and all was fine. Why would this happen?? I am wondering if I did not completely shift to park when I last stop the car? Any ideas appreciated.
 
Top