Here's a short code sample:
CODE
function myKeyHandler(event) {
// event.payload.color = which color pressed
}
myKeyHandler.subscribeTo(KONtx.application, "onColorKeyPress");
Please note, at this time you don't have access to the red button, only yellow, green, and blue and only when in fullscreen state.
-Jeremy