Btw, here’s a similar bug I reported back in 2021: Game does not respond to keyboard and mouse input - Age of Empires II: DE / II - Report a Bug - Age of Empires Forum
Have you ever fixed it? I didn’t experience it again since I switched to a better laptop.
But this one here is not related to PC performance.