replace isShiftDownwith
(e.getModifiers() & InputEvent.SHIFT_MASK) != 0affairs>
(e.getModifiers() & ActionEvent.SHIFT_MASK) != 0
getModifiers () returns the bitmask of all modifiers pressed during the event (alt, ctrl, shift ...), which you can bit by bit, and get the status of one of them. Pretty much what the document says.
: Java 9 InputEvent.SHIFT_DOWN_MASK
Edit2: (ActionEvent # getModifiers() (Java SE 9 JDK 9)), ActionEvent.SHIFT_MASK InputEvent.SHIFT_MASK