I was watching a video on youtube about that, took a small paper clip and played with the pins and got it to connect. Using the iPad with the keyboard to type this now and so far it is working ok. Might have to get a small case for it and carry that small paper clip with, and if the keyboard wants to act stupid play with the pins and see if it cooperates again. I heard that Apple had a replacement program for them, but likely expired now, just wondering how they are handling those programs because of being closed due to covid-19?