If you are able to decode the transmitted button press, then you can do anything you want. The pdf is close to what you need.

Ioannis