hey kruger, you can find the commands.cfg in your game folder (...\data\cfg)
open the file with notepad and you'll see a whole load of commands and assigned keys
my first experience with this file was when I wanted to set the numpad enter key to slow the time compression down to 1x (something from SH3 I think, I missed that in SH4 and it nearly killed me once, so I thought I'd try to get that key assigned
right at the top of my commands.cfg there's this thing:
[Cmd6]
Name=Time_compr_normal
Ctxt=1,2,6,9
;Key0=0x08,,"Backsp"
Key1=0x0D,,"Enter"
the command was there but it had no keys assigned to it, so I just copied this line: Key1=0x0D,,"Enter"
from somewhere (probably the original file for launching torpedoes or even from my SH3 folder or something) and I slapped it in there, saved the file and to my satisfaction I found that I could now indeed slow down to 1x TC by hitting the enter key. so there you go.
obviously you want to make a backup of the original files and you have to check every other command to make sure that the key is not already active for something else, or you'll get ingame problems.
the ; in from of the "Backsp" line indicates that that key is inactive so I've got 2 key possibilities there, and only the "Enter" key is active now
all that other stuff about ctxt and all the other letters between the commas are something which I completely ignore, and it still all works for me. Many people will be able to explain all of that but I know nothing about coding.
Even so, for a crude layman solution, this is a simple way to get your key commands organised to your own preference
what I have done now is to create this folder tree: ...Silent Hunter 4\MODS\Bosjecommands\data\cfg
and in that folder is put my own tweaked commands.cfg. This means that I can enable my own little modlet through JSGME on top of any mod package. Hope that all made some sense to you
good luck!