runs with key in start position. but dies when its out

I hate to be repetitive but that would be my guess. Take a piece of wire and jump the wires on the ballast and see if it stays running.