Keyboard takes time to start working

I am on Wayland and i have dual booted with windows FYI . When i start my system or open it from sleep, they keyboard doesn’t seem to work at all for first 5-10 mins and then it just magically works.The same thing occurred on the live USB when installing.I have no clue why this is happening, please help.

Have you tried other usb ports?