Buoyancy

What have you done so far? Is your physics volume done? Does your character swimm? If so, then you can start playing with the settings.

For example, considering a fluid friction of 1.0, to surface, you can set the buoyancy > 1 and to dive, buoyancy < 1: