Moving a rectangle in an ORTHO sketch

Hello, please, does anyone know if it is possible to set it somewhere so that when moving a rectangle in a sketch, the movement is only in the x-axis or the y-axis? Thank you.