It's recommended to replace the battery in your key fob every 2-3 years or if you notice any signs of wear and tear such as difficulty locking or unlocking the car or a dead battery.