My key was dead when I first got my car too. I drove with it or a few days and it charged the battery back and it's working fine. If you just got the car, maybe drive for a couple of days and see if the battery charges.
'02 330i M/T
'95 325 Vert