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

the car will run with the key in the start position, then when its out it dies. it has stock ignition on a 72 dart 318