Typically, Windows services run in non-interactive session 0. They are isolated from the session used by a logged on interactive user and do not have direct access to the window station and desktop of that user.
However, beginning with Windows 10 you can create a Per-user service. Such a service runs in the same session as the interactive user which should provide your service with the ability to interact with the mouse.