Hello,
It depends on the screen you are using, but typically you will use the isRemoteKeyPressed() API inside your message event handler to recognize key presses.
From a UI consistency perspective we would actually prefer that you add a settings screen to your application that exposed these types of options rather than a hidden screen that user might accidently stumble across.
If you go the settings screen route you can pop up a PIN entry dialog (roPinEntryDialog) to guard a particular setting if you would like.
Cheers