I saw nobody responded to this relatively old post.
For the question of the state picker navigation, I first thought that only the encoder input would work for moving upd and down in the state picker list, but when I try it this also works with up/down buttons.
Project file attached:
MD4-5 external buttons.idsx
For the question about closing the page with the same input that is also used as the escape button, there is nofunction that does exactly this. You cannot connect your input directly to the display page hide, this will always close the page.
And there is no SIC to tell if there is an active selection on the page.
Customer support service by UserEcho