If mouse went left/right

how can i find that out?