example of basic mouse control