This is odd since it doesn't sound like the game is reverting to its default controls. After you get an event where the keys revert could you please try sending a bug report? It could be that your custom controls aren't applying properly in the first place.
Also, if you want to clear a key mapping you can click the value you want to change in the Custom Controls screen and press Backspace. This will clear the current key assigned.