"I used Box Select around an area, but selected some stitches I didn't want. Undo is grayed out so I can't click it."
To cancel a stitch block selection made using Box Select, Freehand Select, Point Select or Select All Visible, click anywhere in the work area, but outside the dotted box showing the selected stitches. The stitches will no longer be selected.