2007 sonata

on sporadic occasions when I turn the key to start the car, I get nothing. No buzzers, bells, lights or ignition. If I open and close the door, all is well. Any ideas?

What do you mean exactly by “turn the key”. Do you mean to “on” or to “start”? Which one?

If you turn the key OFF and then turn it to START again without opening and closing the door, does it them work normally?

The next time this happens put the transmission in Neutral and start it. If it starts in Neutral, the transmission neutral safety switch is bad or needs adjustment.

Ed B.