I have been facing same issue some keys (r,t,f,g,c,v) were not working . and sometimes it delayed response after pressing for long time. I tried different solutions but non of them worked.
solution:
in my keyboard some malware was causing issue. you can check if this is the case. restart your pc in safe mode and check if keys are working . If this is the case then navigate to
virus and thread protection->scan options->Microsoft Defender Antivirus(offline scan)
click on that option and start scanning it will restart the pc and this in built tool will remove
any potential threat causing this issue.
hope this fix will help after trying other fixes at the end try this one.