Modern car keys are a small radio transmitter. The key works by transmitting a code to a receiver in your car that will open the doors when the correct code is received. The transmitter (key) and receiver (car) must be synchronized. If your key is damaged, it may not be able to signal to your car and you may be locked out. A locksmith can program a replacement key for you. Here's how car programming works.