I have a customkeys.txt which works fine.
After saving any option regardless if its gameplay, sound, video, anything and save it scrambles all button positions.
So each time I have to change an option, I will need to replace the customkeys.txt with a backup.