Why does your engine still run when you take the key out of ignition?
Your engine does not still run when you take the key out of the ignition. The ignition key switch is connected to the electrical system of your car, and when you turn it, it sends a signal to the starter motor to start the engine. When you take the key out of the ignition, the signal is interrupted, and the engine stops.