On older cars, the pedal is linked to the engine by a mechanical linkage that is often visible under the hood and sometimes gets dirty and stiff. A good clean with penetrating oil and a toothbrush and some grease can be all that is needed. Also check around the pedal - the carpet or floor mat may be getting stuck behind the pedal.
On newer cars, the gas pedal is connected to a throttle position sensor...more complicated and you need a professional. Sounds like a mechanical restriction though so consider the above.....
Time to clean throttle plate. Get some throttle body cleaner, take the hose off the intake, spray it liberally (with the engine off) and let it sit for a bit. Put everything back together and start it. May take a little effort.
Ron A has the answer but I usually take an old tooth brush and scrub the area around the plate and wipe. That being said. there are some cars that are sensitive to this procedure. Nissan being one of them.You will love the results.
It's a 2000 GMC Yukon XL 1500
Most cars use a wire inside a rubber tube to actually move the throttle body. You don't say what type car you have or how old it is. The gas pedal simply pulls on this wire which runs all the way to the throttle body. Open your hood and have someone sit in your car with the engine off and have them push on the gas pedal. Watch what happens. A sticky gas pedal could mean the rubber tube containing the wire is kinked, bent or it could mean that the throttle body is showing wear. If you watch what is happening you might be able to tell what is happening.
Sometimes, now more often, my gas pedal is a little stiff. Seems stuck so i put more pressure until it eventually jolts. What could be causing this?