public void processKeyEvent(NativeEvent evt) {
Keys pressedKeys = event.createKeys(evt);
Set<KeyShortcut> similarShortcuts =
ensureShortcutMap().get(pressedKeys);
boolean firedEvent = false;
KeyShortcutEvent shortcutEvent = new KeyShortcutEvent(pressedKeys);
if (similarShortcuts != null && !similarShortcuts.isEmpty()) {
for (KeyShortcut shortcut : similarShortcuts) {
boolean matchingEventType =
shortcut.getKeyEvent().nativeEventType.equals(event
.getType(evt));