Function isMouseAction