I had this problem, the keyboard mappings not saving, one time and it ended up being a VistaCNC pendant plugin conflicting somehow. I removed the plugin, did my keyboard mapping, quit Mach4, restarted, re-enabled the plugin, all was good. I haven't fuddled with this for a long time as I don't change keyboard mappings on a whim, but something to think about.