Keyboard work in BIOS not in windows

recently i spilled coffee on my thinkpad thankfully the keyboard was the only thing affected i tried using an external one it worked at the first day then it stopped working with the main keyboard but i noticed that both main and external keyboard work in BIOS but not in desktop i dont think its a hardware issue because the keyboard work perfectly in bios

any solution will help thanks