My keyboard is no longer working in login screen

My keyboard is no longer working in login screen

The last thing I think I did is update to the latest version OCLP 2.4.0 and running root patch after that my laptop fell, and the ram had issues which I fixed. Now when I boot the macos as usual, the login screen can't recognize my keyboard both the Mac keyboard and external one. But the keyboard is working very well in the startup utility screen when I open the terminal.

So please how can I fix this issue I have tried NVRAM reset still no progress

Also I don't know why the input source at the top right keeps blinking every time I type on the keyboard.

Author: @Apart-You-7982