Did you try plugging in an external USB keyboard? If it works then is the problem is from your hardware. You can also try to boot a live session of another session and check if it works or not. It might be a hardware problem like what happened with
me, who knows :)