### Question:
Code { public boolean isControlKey() { return (getKeyCode() >= 16 && getKeyCode() <= 18); } @SuppressWarnings("unchecked")  Code(KeyEvent event); int getCharCode(); int getKeyCode(); boolean isCtrlDown(); boolean isAltDown(); boolean isShiftDown(); boolean isFunctionKey(); boolean isControlKey();  }### Answer:
@Test public void testIsControlKey () { assertFalse(keyDownCodeAllFalse.isControlKey()); assertFalse(keyDownCodeAllTrue.isControlKey()); assertTrue(keyDownCodeControlChar.isControlKey()); }