Forum Discussion
NB_
9 years agoRoku Guru
Check the `press` param - the first time it's `true`, the second - `false`. You get notified once when user presses the button and 2nd time when they release it - this is helpful e.g. when writing games or scrolling through lists. It's up to you to decide which one of the 2 cases is the action item for you.
"onKeyEvent()" wrote:
The press parameter is a boolean value that is true if the key was pressed, and false if the key was released.