horizontal locking

It’s actually a tool modifier in preference called “Constrain Direction” I think. It works both vertically and horizontally.

EDIT: And it should be CTRL by default and already working. Just hold down CTRL while you drag. If you drag to the right or left, it will stay in the same lane. If you drag up/down it will lock vertically.