Added mouse handling - now accumulates motion to make vectors, detects stops.