Hi you are not "coding"the key only registering it with the central locking ecu. This is easily done just follow the instructions on my page
HERE If you have any problems it may be that the ecu has "crashed" in which case follow the directions of Bo$
"What they did was to remove and re-insert two electrical plugs in sequence.
Behind the dashboard, below and to the right of the steering-wheel (RHD car) is an electrical box with two plugs going in, a blue one on the left and a green one on the right.
First remove the blue(left) then the green(right).
Now put back the green(right) then the blue(left).
"
Now register the key/s again as in link provided above.
Hope this helps.