You searched for: “magnetotaxis”
magnetotaxis
The orientation or movement of a motile organism in response to a magnetic field.