If the key is not working and the battery is dead, you will need to use the emergency key to open the car. The emergency key is located inside the key fob. To access it, you will need to use a small screwdriver to pry open the fob. Once the fob is open, you will see the emergency key.
Once you have the emergency key, you can insert it into the door lock and turn it to unlock the door. Once the door is unlocked, you can open it and access the car.
If you do not have the emergency key, you will need to call a locksmith to open the car for you.