Streamwise and lateral maneuvers of a fish-inspired hydrofoil