Meet the Flirc USB: a handy gadget that can pair any remote control to your computer or media center. It is a universal IR receiver. It mimics a keyboard, so no driver is needed to use it. Flirc has a range of 20 feet.
This USB IR receiver also works with the Raspberry Pi.