Added method for getting the mouse button.