Escape cancels ui dragging

If you press escape while dragging it cancels the ui element dragging.