Fix mouse buttons on kMouseDown/UpMessages

This fixes a problem reported on issue #388 where a tool loop couldn't
be canceled pressing left button when it was iniciated with right button.