Geez, does your truck hates you that much, it wants to take off all on its own....

...ok bad joke.... back to the problem...
You have a '97 model year which has been plagued with ignition switch/wiring issues. If wiring looks good, I would be looking closely at the ignition switch.
Welcome to A.F.