That's right, you don't 'code' the key.
The key is fixed and has a unique electronic ID, you 'add' it to the car in the spare key 'slots' allowed in each vehicle.
E90 330i 6MT gone. E91 335i 6MT gone. AMG E63 Estate gone. M6GC current...