Key fob not opening and closing the doors

Hi, I can’t lock or open the doors on my 2007 k12 using the key fob. I’ve changed the battery and tried to reprogram using YouTube but to no avail. I put the key in and had gloves on and while I was trying to start the engine I was holding down the open or close buttons or both and the dash seemed to go crazy. I can lock the car when inside using the switch so I’m guessing it’s the key fob I’ve damaged. Can anyone advise me if there’s a fix or where I can get a key without going to the main dealer please?
 
I resolved my locking issue today. It may work for you..... My thread link below

 
Top