Keyboard problem

.

.

Does it only happen on/in gmod? When it changes to qwerty, does that change still exist after you quit it?

Check to make sure that your cfg folder isn’t read-only.

Try disabling Steam Cloud on Garry’s Mod.