input for mouse directions handled