If you pull the door lock on the passenger door, it should have the key code that covers all the locks. You could also take the lock and have a locksmith make a key from it. Pull the ECM on the passenger side kick panel and remove the cover to check the condition of the capacitors in there - they fail and the truck won't run, or cause weird issues. Clean all the grounds on the truck - they cause many issues as well. Let us know what you find.