My F150 did the same thing a while back few weeks after i bought it off my neighbor. was leaving school and pedal to the floor all rpms. Shut it off, bam, reverse worked fine again, drive.. ya nada. Shut it off, drive worked fine.. until i was crossing an intersection, then all rms, literally rolled across the damn intersection with an 18 wheeler coming.
Ya i was about to blow that pos up when i got home and post vids on youtube... well not really, but it sounded fun.
Anyways turned out my screen was just clogged up. Got a friend to flush that bad boy, replace my tranny fluid, and i was off. Still driving year and a half later...
Though i know i will eventually need a new tranny... But truck was used for towing, and long distance driving everyday for work, by me and the previous owner. So ya i feel ya Steve, gl bro.