Edit keymap to have effect only on Main Menu screen

I want to edit keymap such that there is no effect of the right key when on the main menu of kodi. Reason being, the skin I use opens up a huge configuration widget menu that confuses the living daylight out of some of my co users. Enabling kiosk mode has no effect on this.

How can I selectively disable the right button only for main menu?

Do I disable it globally and then enable it individually for all the non-global sub areas? Would appreciate any help.[/align]