// callback function when a key is pressed on Keyboard private void KeyboardKeyPress(KeyControl control) { string keyName = control.keyCode.ToString(); if (control.ReadValue() > 0) { StartKeyHightlight(keyName); } else { StopKeyHighlight(keyName); } }