I am a locksmith. The ignition "key" is called fobik and has to be programmed in order to operate, there are mechanical door locks on the truck that require no electronics, you would have to insert the key and rotate in order to operate the lock (OMG how primitive next thing you know you'll be getting up to change the channel on the TV). There is another option that is called a pod, on the heavy duty trucks without power anything these were provided when new, they look like a key but the head is shaped in a way to fit in the dash and start the truck, the downside to the pod is, if you have the factory alarm and you electrically lock the vehicle, it will trip the alarm when you unlock the truck until you turn the key in the ignition.
Upon request, most dealers will provide you with your key code for the mechanical key and the PIN number to access the security system to program the chip (with the proper equipment). Any competent locksmith has the equipment to cut and program keys usually cheaper and faster than the dealer.
I would advise staying away from the cheap knock-off fobiks found on line as it has been my experience they do not last and Ive had more than a few come bouncing back at me after 3 weeks or so. In my shop I only sell new OEM parts and have no issues.
The newer trucks with the push button start, we call them tombstone keys and they are a proximity system, there again, a competent locksmith can cut their keys and program them also.
You are not stuck with the dealer when it comes time to get your spare keys and everyone SHOULD have a spare for their truck because one is one away from none and none is expensive.
BTW at least once a month stick the key in your door lock and operate it, whenever you change your oil, lube your locks because like anything else mechanical locks will seize up from lack of use and if the battery in the truck goes dead you're gonna need that door lock to work.