Different behaviour of Samsung remote buttons

Hi All,

I’ve a weird problem, I’m not sure it’s an issue as such just different behaviour from different ways of doing things.

I’ve got a Raspberry Pi connected to a Denon Av Receiver and then into a Samsung TV. If I switch sources on the Samsung remote via the source button (and then return to OSMC) I loose control of the system through the remote. However if I swap the CEC source from the Tools button the remote works.

Is there anything I can change so I can swap source using the source button and keep control of the system via CEC?