Connectivity with XBMC for signals

Hello I have a small project that I'm working on and it basically consists of using an Arduino to send signals using a button to the Raspberry Pi which is running XBMC.

However I don't know what the serials are for XBMC(such as Power, Select, Back & Arrow keys) if anyone could help me out of how I can send signals to XBMC from the Arduino via Ethernet then please share. :slight_smile: