The US version of the Mi Box is Android TV based, international versions are not. This will work with only certain Android and Android TV devices, but not all.
Having a US Mi Box, I can attest that it's the box, not the keyboard. It's a finicky little device that works with only the things it chooses to.