Interestingly I've had this three times on my car.
The first time we thought it might be battery but we had a jump starter in the car park at work. Something, I don't know what, caused it to start but battery was good and the keycard had no effect, or appeared not.
The second time it went...