xev

xev

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