code: @Override
      public void keyPressed(KeyEvent event)
      {
          lastKeyName = event.getKeyChar();
          lastCode = Integer.valueOf(event.getKeyCode());
          if (!keys.contains(lastCode))
          {
              keys.add(lastCode);
          }
  
          if (actionsPressed.containsKey(lastCode))
          {
              final List<EventAction> actions = actionsPressed.get(lastCode);
              for (final EventAction current : actions)
              {
                  current.action();
              }
          }
      }
docs: /*
  KeyListener