A charged particle moving in a magnetic field experiences a resultant force
In the direction perpendicular to both the field and its velocity
F = qv × B
From the above equation, it's very clear that magnetic force always acts in a direction orthogonal to both, velocity and magnetic field. Don't worry if you are not able to develop familiarity with the cross products yet! It will be dealt elaborately soon. Stay curious!