You can use the msg.isRemoteKeyPressed() function to determine if a remote control key has been pressed. msg.GetIndex() will then return the code for the particular key that was pressed. You could then exit your channel in the event of a specific remote key press.