https://bugs.winehq.org/show_bug.cgi?id=57144
--- Comment #7 from olegos2 lojorix20@yandex.ru --- I have attached logs, first 2 are without WINEDEBUG, other 2 are with WINEDEBUG=-all,hl2.exe:trace+event. There's a few focus related x11 events that do not happen in virtual desktop. Tested on wine-9.15 vanilla. Seems like minimizing the game in virtual desktop mode also doesn't help this time.
But then I changed game to windowed mode. I switched focus to cmd.exe and back to the game, keyboard immediately started working. Also after going back to fullscreen mode keyboard works now.