xev
Linux Commands - Administrative Commands

xev

This command prints any events that occur on the box that it opens.