For nVidia devices you're often better moving to a newer kernel - personally
I use jxself's linux-libre which is designed for Trisquel here:
http://jxself.org/linux-libre/
Then for your keyboard problems try the solution here:
https://trisquel.info/en/forum/keyboard-lag-trisquel-7
But it does rather sound like you've disturbed the ribbon cable for a laptop
keyboard & touchpad. For which you need to search Youtube for disassembly
instructions for your specific model - they should mention any special
measures for reassembly.