Have you tried testing the attachable keyboard on another device to make sure it works? Also, such keyboards may have a battery of their own, if that is the case, it may need replacing. Also, if it is a wireless keyboard there could be a few reasons. Here is some info to try to resolve issues...
Linking or pairing a wireless keyboard can be easy, or difficult, depending on a few different factors. Factors like the operating system of the tablet and the brand of the keyboard.
For tablets that have built-in Bluetooth capability you should be able to use the steps below to pair them. This is general pairing information. It may vary slightly for different brands or different tablet OSs (Windows, Android, iOS, etc.).
To pair the...