Car won't stay on

Hey guys have a little problem went to lunch came back out to go to work and car would not stay on thought it was fuel or something but seems like ignition is popping back and and Turing entire car off why is this happening , I had to hold the ignition in the on position to keep car at idle when I let go car and radio gauges all go off any clues. Thanks