Are you sure it is the key? If so, I think you have to replace the entire key. For me, it was a new GM5 module. I had the dealer do it, but here is a good writeup on the issue: http://www.bmwgm5.com/