Press Esc to cancel dragging.
Press Esc to cancel resizing.