To use constraining, presswhile drawing.
In all tools that support constraining, you can force the next point to be constrained horizontally or vertically in relation to the last point entered. The vertical or horizontal constraining depends on where your mouse lies when you press. If you are more north or south from the last point, it will be vertical. If you are more east or west, it will be horizontal. To change, just release and press again at another location.
Some tools, like offset and trimex use constraining differently. They do not constrain vertically or horizontally but use a different way more adapted to the particular tool, like for example constraining the operation to a certain polyline segment.