Broken Ignition Switch?

Engine dying when the key is released is a great indicator of a bad ballast resistor.