Add event mask for mouse tracking