Fix the bit mask for mouse button event