It sounds like your problem is mechanical(hardware) related rather than software related, especially at it occurs sporadically.
You may want to have a look on the manufacturers web-site to see if this "feature" has been reported.
Try plugging a mouse in and seeing if that works. If it does you know that your software is not causing the problem.
Good luck