Remote Stops Working

Hi I have Kodi 16.1 on win 10 machine with a Logitech 650 remote. The remote is received via the iMon receiver in my old Silverstone ML02 case.

At random times, maybe in the order of once a day or so the, Kodi stops responding to the remote. I can see commands are being received, and Kodi still functions if I use the keyboard. The remote still works if I switch to other programs so it seems that Kodi is just getting stuck. Sometime if I do some stuff with the keyboard, then try the remote the remote will be working again. Other times i restart Kodi and it works again. I don’t see anything in the log files.
I have the following keyboard.xml file:

<keymap>
<global>
<keyboard>
<numpadtimes>reloadkeymaps</numpadtimes>
</keyboard>
</global>

<FullscreenLiveTV>
<keyboard>
<left>PreviousChannelGroup</left>
<right>NextChannelGroup</right>
<up>Up</up>
<down>Down</down>
<!– for debug to see if keyboard.xml is working <escape>CodecInfo</escape> –>
</keyboard>
</FullscreenLiveTV>
<!– EPG Settings –>
<tvguide>
<keyboard>
<escape>PreviousMenu</escape>
<backspace>PreviousMenu</backspace>
<m>ContextMenu</m>
<r>ContextMenu</r>
</keyboard>
</tvguide>
<!– Channels, left menu during live tv –>
<pvrosdchannels>
<keyboard>
<escape>PreviousMenu</escape>
<backspace>PreviousMenu</backspace>
</keyboard>
</pvrosdchannels>
</keymap>

Any suggestions welcome.