combined mousedown and mouseup
Added right click handling
Right click (un)sets flags