My macbookair tried to drink my coffee and now, everything is upside-down
For the fan, you need to differentiate between a fan problem or temperature problem. You need to see if the laptop is over heating when running the fan at full speed. Use something like TG Pro.

For trackpad and keyboard, you need to be able to see input live, so that you can tell if the trackpad/keyboard is in fact dead or working randomly. BetterTouchTool gives a live view of the trackpad. Karabiner does the similar thing for keyboard.