Chosen Solution

both keyboard and trackpad stopped working after liquid damage after liquid damage. but other functions are working okay for more than one year. touch bar and keyboard light are on, and the power button works. but just cannot input anything from the keyboard and trackpad. Which part of the laptop was possibly damaged from the liquid?

You’ll need to replace the uppercase assembly MacBook Pro 13" Retina (Touch Bar, Late 2016-2017) Upper Case Assembly Its a bit of work! I would recommend you find a local Mac repair person who has the skills to do it. You may also need a trackpad as well.