I have a 8330 that I recently started using again after several months being in the box. I was having a problem with the unit working then stopping, keyboard not responding, tgtg entered on the screen/input no matter what keys are pressed and then a lot of freezing. The trackball also scrolls but does not respond the the pressing or pushing (selecting) of the trackball.
I have replaced the keyboard, trackball, mylar membrane and still have the same problem.
The unit will work for a period of time, hour to two and then go back to being all screwed up.
What you are describing sounds like classic liquid/moisture damage to your BB, especially in the keyboard/trackball area. Unfortunately, there is no real fix for it.