Keyboard Input lag while in game

I’ve got a problem that’s been plaguing me for awhile now and I’ve finally wanted to start playing gmod again but this still occurs

It only occurs while I’m searching for a multiplayer game or using the map search bar in Start a New Game
It does not occur in the console on the main menu but does while in a game