Library Remote
// #include "http://www.byvac.com/mBlib/flb/Library/2016/lib_remote.bas"
Remote control is a useful cheap input. This library uses a plug-in, interrupt and input capture but it will do a variety of remotes. The output is a 32 bit number which can be decided with a key table.
This is the C plug in used if you wish to modify it.
Typical low cost remote, usually uses NEC coding
Example
http://www.byvac.com/mBlib/flb/Library/IRD/remote.bas
If using 5V then use a 5V tolerant pin, for example RB5 to RB9