Use IR sensor integrated Mac to listen to IR signals
Apple's IR sensor only works with the two versions of the Apple remote (white plastic and aluminum).

To use another remote you need to attach an external IR receiver and install additional software.

See remote buddy