1999 Ford Explorer key gets stuck

When I try turn off the car the key gets stuck and wont get out and it wont let me get out either.

Just because the key is stuck should not keep the door from opening . You need a new key ignition but first see if it does the same thing with your other key.