Press escape to cancel mouse move/resize.