This should do it. I dont know what the input resistance is to the ECU; I guessed 10KΩ. If it is a lot lower than than, we have to adjust some resistor values. Maybe you could measure it with an Ohmmeter, key off. See what it reads from the ECU input pin to ground.
The input to the circuit is the switched 12V through the key switch. That is on the right side of the schematic. The output is the presumed 10K input to the the ECU, on the left side.
The green trace is the key switch, and the red trace is the input to the ECU. If the input resistance to the ECU is much lower than 10K, then R7 and R2 will have to be adjusted. Let me know.