What I was thinking was I'd look at my remote control code, each button press sent a character from a keypad read '1' to '9' and 'A' to 'D'.
The receiver then did a switch:case on it:
switch(incomingByte){
case '0':
:
:
case 'D':
:
:
}
So I can see what I used to do that.