(And, of course, there's the really old-fashioned way of locking coordinates. If you display the Coordinates Palette (Windows > Palettes), you can lock any coordinate by pressing alt-letter. E.g., pressing alt-Y locks the Y value so that only horizontal lines can be drawn, or alt-A to lock the angle, etc.)
One of the forum moderators
AC 28 USA and earlier • macOS Sequoia 15.2, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB