You can use an application like
AIVMS to map keyboard keypresses to any recieved IR signal if you have a USB-UIRT IR Transiever installed on your system. You can also map keyboard and mouse buttons so that they transmit IR signals to control equipment. I use my Logitech MX1000 mouse to control my AV system.