Complex sentence: In naval warfare the key is to detect the enemy while avoiding being detected yourself, and to deny to the enemy the chance of detecting your forces.
Split into simpler sentences: In naval warfare the key is to detect the enemy while avoiding being detected yourself. And to deny to the enemy the attempt to detect your forces.