That kinda sounds like the infamous TPS (throttle position sensor)
If it's outta wack the transmission will make a mess with the 3-4, 4-3 shift. You will need a voltage meter and a few minutes to check the thing.
The TPS is located on top of the inj. pump, just toward the front, ahead of the AFC cover.
It has a 3 wire connection attached to it and the center wire (orange) is + (positive).
You should stick a safety pin into the little socket that the wire goes into (+ side) and hook your positive meter wire here, and ground your meter to the frame or some such place.
Turn on the key (do not start truck) and read voltage. It should read between . 5 Volts and 1. 0 Volt DC. Also cycle the throttle slowly from idle to WOT. The voltage should go up in a nice smooth increase.
If it jumps around then the TPS is dirty inside or crapped out. I have heard of guys cleaning them by spraying contact cleaner from the underside, up into the housing but I've not tried it myself.
Underneath the TPS is a shaft which has two "flats" for a wrench. I can't remember what size it is, perhaps 1/2" or 7/16"
By adjusting it one way or the other you will affect your 3-4, 4-3 shift. Right now, mine is around . 7 Volts. If I go much further than that, it waits too long for the upshift to 4th and jumps back to 3 too soon.
If this is not it you may have a governor solenoid in the VB thats not happy or some other issue I'm not qualified to explain. I've had some experience with the TPS, so thats were I'm coming from on that one.
Good luck, let us know how you make out.
Bob