Spark when key is turned to the off position?

If it starts for a moment when you let off the key, it sounds like a bad ballast resistor.