Those can be a sign that your ignition switch is going out.
If so, it's about 20 bucks at a dealer and 30 mins or less to swap it (you need a tamperproof torx bit).
We're talking about the electrical connector, not your ignition lock switch.
Good luck.