I find that not all keystrokes are detected. If I do a short key press, it can be missed.
For example, I just tried to surface with my sub. It didn't move. I pressed the key again. It didn't move. I pressed the key and held it. Sub surfaced.
I suspect that the key sampling rate in the game either too low, or set incorrectly.