How do body cells keep the right amount of water inside themselves?

By osmoregulation .