I had a similar problem on my 51 plate ford focus, the key fob became erratic and had to resort to using the key to open the door, I took it down to a locksmith and he supplied me with new key fob and re-programmed it for £40.00, you can reprogram it yourself by inserting the key turn it to number 2 four times and you should hear a chime, then quikly press a button on the key fob and you have now programmed the key to the ignition, this didnt work for me all he did was take out the sensor out of my old key put it in new key and reprogram, if I knew would of done it myself. The only problem with this is you have to be 'extremely' carefull removing the old sensor because if you damge it your fubared.