Theres currently a bug going around with the sdl2 library that source 2 uses. There was a recent update to the demo viewer that switches your keyboard layout to a controller one while the demo is trying to play. Try compiling sdl2 from the official repository
https://github.com/libsdl-org/SDL and compile from the latest git commit. Then install and try running the game it should work since I had the same issue on Artix Linux with KDE.