It sounds like your engine is "dieseling". It's where a gasoline engine runs after any normal source of ignition is removed. Dieseling is often caused by carbon build up in the cylinder (on the head). After the engine has been run, the carbon stays red hot and continues to ignite the fuel.
A 'spark ignition ' engine is your regular gasoline engine as opposed to a diesel, which is a 'compression ignition' engine
Compression ignition is deisel. Otherwise, spark ignition is gasoline.
Ignition control device
It could be a serious carbon build-up in the cylinders, which glows hot enough to ignite the fuel even when there is no spark. The only reason the engine stops when you turn the key is that the spark stops. So if something else can ignite the fuel, the engine will run.
When the key is turned off and the engine continues to run normally it is probably an electrical problem like a bad ignition switch. However, if the engine is "dieseling" and the ignition is really off, then the problem may be a buildup of carbon deposits on the tops of the pistons and the head and spark plugs. You might try cleaning or replacing the spark plugs, then use a higher octane gasoline. But to simply stop the dieseling just turn off the ignition with the transmission in 'drive', then shift to 'park' after the engine has stopped turning over. The timing is too far advanced. Take it to a shop and find out why the timing is so far above top dead center.
Gasoline does not combust properly, or at all, in a compression ignition engine. Gasoline is designed to be ignited by a spark.
pree ignition timing is advanced
The term for this is called "dieseling" ... nothing to do with a diesel engine, rather it's a timing issue with your cars engine.
A diesel engine has the same internal components and works off of compression ignition, not spark ignition.
Several things can cause this phenomenon, called dieseling. Built up carbon in the cylinders, incorrect timing, an overheated engine, a lean carburetor setting, or a fast idle can all be contributors to dieseling.?æ
Backfire flame arrestor