you lost sync with your car. Ive read up on other forums and here about if you push the button on the key fob a certain number of times without being close enough for your car to receive your signal the key rolls code much like the rolling codes of garage door openers and now your car and key need to be hooked up to a Mercedes star diagnostics system to be resynced via a key code set that comes from your vin number.. you have a 06 maybe its a g/k and if so call eddie and he will charge you $500 dollars to have you send him your ecu and ignition and keys to resync your whole car back to new.
taken from another forum
The key works like this:
The transmitter's controller chip has a memory location that holds the current so many bit code. When you push a button on your key fob, it sends that so many bit bit code along with a function code that tells the car what you want to do (lock the doors, unlock the doors, open the trunk, etc.).
The receiver's controller chip also has a memory location that holds the current so many bit code. If the receiver gets the so many bit code it expects, then it performs the requested function. If not, it does nothing.
Both the transmitter and the receiver use the same pseudo-random number generator. When the transmitter sends a so many bit code, it uses the pseudo-random number generator to pick a new code, which it stores in memory. On the other end, when the receiver receives a valid code, it uses the same pseudo-random number generator to pick a new one. In this way, the transmitter and the receiver are synchronized. The receiver only opens the door if it receives the code it expects.
If you are a mile away from your car and accidentally push the button on the transmitter, the transmitter and receiver are no longer synchronized.
The receiver solves this problem by accepting any of the next so many possible valid codes in the pseudo-random number sequence. This way, you (or your three-year-old child) could "accidentally" push a button on the transmitter up to so many times times and it would be okay -- the receiver would still accept the transmission and perform the requested function. However, if you accidentally push the button so many time + 1, the receiver will totally ignore your transmitter. It won't work anymore.
It's called a rolling code system.
both keys need to re-synced to the car if one goes out
i have a buddy with a 08 and he lost sync just going for a walk in a store with a i phone in his pocket... it took smart sj many try's to learn how to perform the process