I would think it is more likely to be a problem with the immobiliser. There is a chip in the key which gives a signal to the car via an antennae in the plastic collar round the key hole. Do you have a second key if so why not try that when the problem occurs again.