Can you acces bios and does your keyboard function within there?

If so, your keyboard isn't hardware defect.

you can try to acces windows recovery before the bootup if the keyboard isnt defect.