Android Box M8 - Issues with QWERTY Wireless i8 keyboard
What input method is chosen? If you have chosen Google voice typing then the keyboard won't work. 

Try choosing Google keyboard. If that is not working, try downloading a third party keyboard app from play store and choosing it.

For a bluetooth keyboard to work, you have to pair the device with your tv box first