Why my "z" key switches with "y"?
This may possibly be that you actually have local transform enabled for the object you are trying to move. If you have rotated the object around 90 degrees, it would appear that pressing the Y key would be moving the object in the Z axis because of moving the object locally. If you don't want this, then simply disable local transform in the viewport.