I have found a bug (or what seems to be a bug) with Minecraft Forge:
I installed:
Minecraft Forge 4.0.0.241
Rei's Minimap v3.2.05
DirectionHUD v1.4
InGameInfoXML
InvTweaks v1.43
Schematica
MonsterSpawnHighlighter
And OptiFine HD U B3
The problem is I launch Minecraft set some controls (it doesn't seem to be mod specific) and options.txt is written to I maybe play on a server a bit test out the controls disconnect and close Minecraft I start Minecraft again and all the controls in options.txt made by mods are completely removed.
Here is my ForgeModLoader-client-0.log:
And my options.txt after setting controls:
Options.txt after re-launching Minecraft:
As you can see it's been reverted
I have looked on the forum posts of all the mods I am using there is no mention of this bug.
I also tried adding mods one by one but the bug seems to stay with all of them and I tried deleting options.txt to see if that was bugged, the bug remained.
I also tried searching Google all the mentions of this bug with Minecraft were from 2010 and had probably been fixed.
I have been trying to fix this since 2 days ago.
So my conclusion is that this is a bug with Minecraft Forge since the default controls of Minecraft stay the same but mod controls do not.