If you accidentally lock your keys in the car while the gas tank is open, you will not be able to close the gas tank door. Unlock the car using spare keys or by calling a locksmith to retrieve the keys from inside the vehicle. Once the car is unlocked, you can close the gas tank door.