Anisotropy of the spin-orbit coupling driven by a magnetic field in InAs nanowires