I handle keystroke for one remote but if my customer want to go with other remote, i have to rewrite the software just to add their remote.
Your application must provide a way for setup, based on remote type/model, or maybe fully independent key mapping, in this case.