if like on my vauxhall when you change the battery in your car key it needs 're-programming' .. then just hold down the lock button and turn your ignition on and it should cycle through the lock - unlock and re-programme your key
that cost me £70 to find out
but I give it to you for free
cos that's the kind of marmite snack I am