the ignition lights stay on when you remove the key and it killed the battery
So now it will have to be towed to the dealer to have the systems factory presets reflashed back into the computer systems and then find out what happened to the delayed exit system. It is possible that the reflash might cure the exiting programming. Was the rig subject to any voltage surges or did you jump start anyone's? That is the most common cause of a programming glitch in later model vehicles.
Search Ford F-150 Questions
Ford F-150 Experts