I think I figured this out using my harmony remote. I Setup my source for Raspberry Pi and had to manually configure Up, Down, Left, Right, OK, Previous to use the TVs buttons. Once I did that, Flirc was able to detect the proper keys. Otherwise I had to set my harmony to the TV device, and then it would send commands as well. Using the xfinity remote itself, it wont learn the commands.