Help i am completely stuck and have no idea what to do

I have a late 2009 iMac that will boot to the lock screen of sonoma but I can't use my keyboard or mouse I've tried many different keyboards and mice both weird and wireless and nothing seems to work. All of the keyboards have worked in the boot picker, if I try to open the recovery mode it just flashes the icon to connect a mouse.I've seen that some people are saying I sound install root patches but I don't know how to go about doing that if I can't unlock my Mac. Please someone help.

submitted by /u/bruuuuuuuhhhh1829
[link] [comments]