02 Ford Ranger Engine Problems

My 02 ford ranger edge revs up to 3,000 RPMS when you push the clutch in while your driving. the only time is stops is if you completely disengage the clutch or come to an absolute complete stop. any ideas on what this might be? thanks!

Nick