assuming the car is a digifant, sounds to me like the idle switch. check you hear it click just as the throttle comes on/off the throttle stop. make sure it shuts form to the stop as well, if not check throttle cable isnt too tight or binding up. if that all looks ok, check the wiring to the 2 pin plug on the back of the throttle body, it loves to snap here. repair it but add in a few extra cm of length to allow engine to move.
idle switch is the one on the bottom of the throttle body, and is a bit of a pain to get to. inlet boot has to come off and you need an angle screwdriver to get to the screws that hold it on.
if all the above checks out, you can check it electrically back to ecu easily. hold the throttle just off the stop to say around 1.5k rpm, then press the WOT switch on the top of the throttle body., the revs should drop, then go back up when released