The most likely problem is a bad ignition switch. To find out for sure, remove the plastic covers over the steering column and remove the 2 screws holding the ignition switch in place. Make sure the mechanism coming from the key is turning the ignition switch. If the mechanism works fine, replace the ignition switch.
And if thats not the issue, then what else could it be? Like I said before it worked a few times then stopped.
thats strange that the panel lights come back on after 20min of shutting the engine off. Everything was out, then the panel lights came back on 20min later.