Mouse and keyboard not working on MacOS Big Sur

Hello, I got some troubles during the game - my mouse’s right key not working while the left key working well only when selecting skills and talents. Not working when I want to use chosen skill. Same with the keyboard - It doesn’t work at all, I mean I can do the window switch using CMD+TAB oraz CMD+M (which didn’t help with the mouse problem) but keys like space, esc, q, w, e etc. don’t work during the game. In the HOT’S menu my keyboard works well as well as my mouse does.
I play on Macbook Pro 2015.
What’s more, same was happening when I had MacOS Catalina, after the MacOS Big Sur update nothing changed. Also SMC and NVRAM reset didn’t work. Please help.