Help with mouse issue

I got a new laptop and installed garrys mod onto it. The problem I am having is with the mouse. When I stand still the mouse moves fine. When I walk it doesnt move at all with the mouse and also in the Q menu the mouse doesnt move and sometimes it’ll take a while before it does move on the menu but once I close it, it wont move again. Is there a way to fix this? Thanks.

Are you using a trackpad or an actual mouse?