I got a keyboard for my kindle fire hd 7" and it worked perfectly fine for a while, but all of a sudden it stopped working.

I unpaired the keyboard and tried to connect to it again, but it can't communicate with the keyboard. The numbers that I have to type on the keyboard show up, and after I type them and hit enter nothing happens then it says "Unable to communicate with bluetooth keyboard" why is this and how can I get it to work??

I have tried turning my kindle off and on and I restarted the whole thing and it didn't do anything.