Your question is a little vauge, You said you wanted to see what data is sent when you press a remote button. The data would actually be a keypress! eg on the fire tv the back button is keycode.back its simple to log all the keypresses just by pressing the remote buttons and logging the keycode.