Apparently this is how it's done:
FrameLayout cancelButton = ( FrameLayout ) actionBar.getCustomView ().findViewById ( R.id.actionbar_cancel );
cancelButton.setOnClickListener ( new OnClickListener () {
@Override
public void onClick ( View v ) {
// DO STUFF
}
} );