keyCode = ke.getKeyCode(); isShiftDown = ke.isShiftDown(); isControlDown = ke.isControlDown(); isAltDown = ke.isAltDown();
this.keyCode = keyCode; this.isShiftDown = isShiftDown; this.isControlDown = isControlDown; this.isAltDown = isAltDown; this.isAltGrDown = isAltGrDown;
   public final void setAttributes(KeyEvent ke) {      keyCode = ke.getKeyCode();      isShiftDown = ke.isShiftDown();      isControlDown = ke.isControlDown();      isAltDown = ke.isAltDown();      hashCode = keyCode +                  (isShiftDown ? 1 : 0) +                  (isControlDown ? 1 : 0) +                  (isAltDown ? 1 : 0) +                  (isAltGrDown ? 1 : 0);   }