Refactored logic around Mouse Down to keep track of which items are selected at that point.
Refactored logic around Mouse Up so only items touched at Mouse Down are checked, and the corresponding mouseUpInside/Outside is called accordingly.
Added Pressed state to buttons.
Added handler function to buttons.