Keyboard stopped working

My keyboard just stopped working, but the power button and touchpad were fine. Luckily I found this tread fast and popped out all my expansion ports and the keyboard started to work again. Hopefully that doesn’t happen again.

My model is i7-1260p and I run Windows 11.