The arrow buttons on the remote act as up/down/left/right and the "OK" button acts as enter. It actually ended up needing very little in the way of custom code to work, but like i said this was a pretty small toy app.
Still, if you want an example of a real "web app" that runs on all of those platforms, just look at netflix.