I have a 2014 Hyundai Elantra no problem for 2 years I got home but when I was trying to open the door the electric key to the car wouldn’t open it I couldn’t get in it’s like the car just shut down finally I got in and all lights came on it made a clicking sound I couldn’t turn the key I couldn’t shift gears it’s completely shut down I can’t get in the car I can’t turn the key.
I ran out of breath reading your post because of the run on sentence . But me thinks you have a dead battery and possibly a failed alternator.
You can’t turn the key in either the ignition or doors? Have you tried your other key?