Well I think you should take a closer look to see if there was no liquid presence in that keyboard because normally when key fails is that and because you remove the trackpad this will not cause the issue because you did disconnect the keyboard cable to remove the trackpad I believe…I think you can use a wired keyboard and try all the keys and if works you will need to replace the keyboard.
Regards