Programming ARC remote with TV

is there a way to use the ARC button on the remote to program with the TV codes (mine is 268 Samsung).
at this moment im unable to. i can program AV button, but then when watching TV and sound via ARC to the SA30, when pressing the AV button to send commands to the TV the sound is lost (cause the SA30 goes to AV mode which has no inputs )