First, make sure your shifting is in the park position
If your steering column locked, move your steering column to the left and right and try to turn your car key
It is a common problem, you will need to contact an expert locksmith to check your car key condition or to check your ignition. Normally, a professional locksmith will know after watching your car key if you will need a new car key or if you will need to replace the ignition.
Make sure it is an expert locksmith license, you don’t the person working on your ignition creating a bigger problem that will lead you to more expenses