Hi and Welcome. My Name is ***** ***** I look forward to assisting you today with your question.
First we can reset your iPad and see if it works or not. Press and hold down the Power button and Home button at the same time until it shows the Apple logo. When you see the Apple logo, release the buttons and let it boot. Only reset if you know the passcode to unlock the screen of your device.
Note : Power button is the button you use to turn off your iPad or its screen. Home button is the round button at front bottom.
Check if it is working now. If not, then go to Settings > General > Reset and tap Reset Network Settings. This will reset WiFi, bluetooth etc
So after resetting, you will have to connect to your WiFi network first. Then go to Settings > Bluetooth and pair the keyboard again. The keyboard will only work after pairing it again.
Please let me know if that didn't work, so we can continue troubleshooting.
Note : This is not my final answer. I strive to provide Excellent service or 5 star service. If you feel you've received anything less or if you are not satisfied or if my solutions didn't work, please don't rate me bad or poor or ok. Instead, please let me know and I will try my best to help you until you are fully satisfied or the issue is resolved.