How to Remap the “M” Keyboard Shortcut for OSD

I am wanting to remap the functionality of the M keyboard shortcut (which toggles the OSD during playback) to a different key using a custom keymaps.xml file in the userdata/keymaps folder. However, the following only serves to bring up the OSD:

Code:
<keymap>
  <FullscreenVideo>
    <keyboard>
      <c>OSD</c>
    </keyboard>
  </FullscreenVideo>
</keymap>

In other words, it does not TOGGLE the visibility of the OSD, like the M keyboard shortcut does — instead, it only brings the OSD into view0. Does anyone have a solution that will allow me to use the C key to toggle the OSD like M does? Thank you so much in advance!