Using a Key Programmer
Modern key fobs do more than simply function as keys. They communicate with the vehicle to start it up, open the rear hatch, and more. To do so, they need to be programmed to work with each other.
Car dealerships, your car manufacturer and auto locksmiths all offer key programming services. You can do it yourself if you have the right tools.
<b