starting when releasing key

when I check everything checks fine. Kinda like going to Dr a quits hurting. It only does it maybe 1 of of 10 times but as soon as it is runnng no problems at all. Hard to diagnose without a complete failure. Usually when a ballast goes it does not cure itself. One reason I was wondering if maybe switch gooing bad,Joe