what is your keypress code? the firmware fires both "press" and "release" events for a single button click. for example:
' press is true for the down phase, false for the release phase .
function onKeyEvent(key, press) as Boolean