code: int getModifiers() {
          int modifiers = KeyEvent.MODIFIER_NONE;
          for (int i = 0; i < buttonsPressed.size(); i++) {
              switch(buttonsPressed.get(i)) {
                  case MouseEvent.BUTTON_LEFT:
                      modifiers |= KeyEvent.MODIFIER_BUTTON_PRIMARY;
                      break;
                  case MouseEvent.BUTTON_OTHER:
                      modifiers |= KeyEvent.MODIFIER_BUTTON_MIDDLE;
                      break;
                  case MouseEvent.BUTTON_RIGHT:
                      modifiers |= KeyEvent.MODIFIER_BUTTON_SECONDARY;
                      break;
              }
          }
          return modifiers;
      }
docs: Returns the Glass event modifiers for this state