All aircraft veer to right during taxiing, take-off and landing

Could it be that for some reason it was affecting nose wheel steering and not the rudder itself? That might explain the problem only occuring on ground. Make sure that there isn’t an axis secretly assigned to nosewheel steering somewhere.