Replace receiver if keyboard works intermittently and receiver is old/damaged. Replace keyboard if multiple keys fail or pairing drops repeatedly after resets.
If your iPad's onscreen keyboard isn't working, you might need to activate it in Settings. Your external keyboard might also conflict with the onscreen keyboard, so turn it off or disable Bluetooth.