Programming for MCE: Remote Control

I’m developing a simple MCE application . It comes up in More Programs without errors and I can use the mouse to navigate, but I don’t understand how to get the remote control’s Left, Right, Up, Down, Select buttons to work. Can anyone help?