Handle mouse clicks