Does the display remain black during the entire episode? If it doesn't, then I suggest opening the Language & Text Sytem Preferences then click on the Input Sources button. Once open, turn ON the 'Keyboard & Character Viewer' option which make it possible for you to view a virtual keyboard on the display. The next time the issue occurs watch the virtual keyboard to see whether a particular key is highlighted indicating that the key is being activated. If it's consistently the same key then you likely have a keyboard problem. If the key is random then there may be some other sort of software issue. Please report your findings so that we can provide additional assistance.
Enable Keyboard Viewer in Language & Text System Preferences

View Keyboard Viewer on screen by pulling down the flag in the upper right corner of the menu bar and then select 'Show Keyboard Viewer'.

You will see a visual representation of your keyboard. In this example I have the USB keyboard. Each time a key is pressed the keycap will darken for as long as the key is pressed.
