Sync playback keymap

Hi all
Is it possible to programme a remote button for sync playback to display on/off? I have my libreelec pi3 linked to both projector and tv and have to switch this each time I change between displays…