If you have to hold the key in the crank or start position in order to keep the engine running, I would assume the problem is the ignition switch. Could need replaced or, in some cases, the contacts/points need cleaned - although I think replacement is normally required.