If this iMac is the new slimline iMac, there is no longer any IR receiver technology in these iMacs.
If you want to control your iMac remotely.
If you own an iPhone, iPod Touch or iPad.
Here's an app
if you own an iPad and want to complete remote control your entire Mac, check out this on the App Store on your iPad.
Splashtop Remote 2