Found out my Apple Remote that came with my Apple TV also controls my iMac. At least the volume. There is an easy fix for this. Just turn of IR on your iMac. Security&Privacy->General->Advanced. If you have two remotes (one for each device) just pair them with the device that they should control. In OS X Mountain Lion the Pair button is also in Security&Privacy->General->Advanced.