A conducting wire in a magnetic field $$\class{violet}{B}$$ carries an electric current $$I$$, which points perpendicular to the current direction (into the screen plane). Thus, a magnetic force $$\class{green}{F}$$ (magnetic part of the Lorentz force) acts on the current-carrying wire, which deflects the wire - according to the left-hand rule - to the right.