Download Set-keys.
http://www.subsim.com/radioroom/down...o=file&id=1016
Instructions on how to use it and where the file is are in the readme.
You can do all sorts of interesting things with the program the best being the ability to have one key for a chain of commands. For example, you can set one key to emergency dive, flank speed, lower periscope, hard left rudder, check depth under keel etc.