private void onKeyPressed(KeyPressedEventArgs e) { var handler = KeyPressed; if (handler != null) handler(this, e); }