Today after opening the lid I found out that TouchPad and Keyboard doesn't work. I tried with an external USB mouse, but no success. However, keys work during the startup when I'm trying PRAM reset. Booted in safe mode but again they froze at login screen. Recovery mode didn't work either. I just can't login into my mac. My machine is MacBookPro 15" Mid 2009, running macOS Sierra.
Update: Recovery mode doesn't work, it shows nothing, but I booted with Option key to select startup disk and both keyboard and touchpad work while choosing the startup disk. But once I got to the login screen, they both freeze.
Any hints what might be the problem and what other steps I should take before taking it to the repair shop?
Thank you very much!
Shift
while booting until you hear the chime. You can also try Recovery ModeCmd-R
. Let us know if the kbd works by editing the original question with the results of your test.