@Kayak this may help. Even though you are using the ONN device, it should be the same method.
Your shield remote won’t change the TV input, it’s the CEC settings that does that. You can make sure those settings are correctly configured on your xbox. Then on your TV settings make sure CEC is configured so that it will switch whenever any new device is turned on.