XEV

    Find keyboard events

    xev -event keyboard  | egrep -o 'keycode.*\)'