Sounds like your ignition switch is sticking, its located on top of the steering column under the dash. Ive had to deal with mine alot lately, thats how im starting my truck. It should be a light yellowish or if its aftermarket, blue most likely. Id replace it and see what happens.
Email me
BGM V2 now here, check RR forum for pics and specs!