2930313233343536373839
int keyCode = KeyEvent.VK_SPACE; Input input = new Input(); input.keyPressed(getMockKeyEvent(keyCode)); assertTrue(input.isKeyInputActive(keyCode)); input.keyReleased(getMockKeyEvent(keyCode)); assertFalse(input.isKeyInputActive(keyCode)); } @Test