Hello,
Thank you for posting in Q&A forum.
The bug check has a value of 0x000000EF. This check indicates that a critical system process terminated. A critical process forces the system to bug check if the system terminates. This check happens when the state of the process is corrupted or damaged. When the corruption or damage happens, as these processes are critical to the operation of Windows, a system bug check occurs as the operating system integrity is in question.
Bug Check 0xEF CRITICAL_PROCESS_DIED - Windows drivers | Microsoft Learn
Built-in Windows critical system services include csrss.exe, wininit.exe, logonui.exe, smss.exe, services.exe, conhost.exe, and winlogon.exe.
I think you can use PE model to reinstall your system to see if it can fix your problem. this will fast than debug the system and find out the damaged service and fixed it.
if keyboard still not working after system reinstall, then it may cause by the hardware damaged, you may need think to change a new keyboard.
Best regards
Yanhong
=====================================
If the answer is helpful, please click "Accept answer" and upvote it