There are no batteries in the key but there is a chip which should be detected by a transponder in the ignition switch. Sometimes it fails to work and sometimes the tiny chip falls out of the hole in the key. So best to always carry a spare key otherwise (usually in the French Alps in my experience) one can be stranded. A good key cutter these days can copy the chip and make a spare key with the correct chip in it.