### Question:
Code { public boolean isAltDown() { return isAltDown; } @SuppressWarnings("unchecked")  Code(KeyEvent event); int getCharCode(); int getKeyCode(); boolean isCtrlDown(); boolean isAltDown(); boolean isShiftDown(); boolean isFunctionKey(); boolean isControlKey();  }### Answer:
@Test public void testIsAltDown() { assertFalse(keyDownCodeAllFalse.isAltDown()); assertTrue(keyDownCodeAllTrue.isAltDown()); }