Maybe with the Key Mapper mod. It allows you to assign whatever keys you want to various commands, including multiple commands to one key.
You could change your C key to make it command ahead flank and periscope depth. I'm with Steve though on the reality thing.
Doesn't a screen pop up asking for you orders when a ship/aircraft is spotted? You can select what you want to do and set it as a default. Dive to periscope depth is one of those IIRC. It is a slower dive though but you don't over exert yourself pressing keys.
I use Key Mapper in SH4 and a similar one in SH3.
For example I have surface, lower whole scope(both scopes) and ahead standard on the S key. No more forgetting to lower my scope when I surface, going into TC and realizing a day later, my periscope has been up the whole time.
In SH3, I man my deck gun, fire at will, and aim at waterline with just CTRL+G.
I have a whole list of keyboard commands for both games. Saves time.