This is very late, but this may be helpful for whoever stumbles upon a problem like this if your keyboard works fine in uefi/bios but doesn't in windows.
Settings > System > Recovery > Advanced startup (restart now)
When you get to the startup screen, you might notice your track pad and keyboard working again!
Just click continue to windows 11 from there and see if it stays like that. It has worked for me.