It seems when using Display.setParent, if I hold control and press the mouse that control is momentarily reported as being up.
Executable example:
Canvas canvas = new Canvas();
JFrame frame = new JFrame("Test");
frame.add(canvas);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(new Dimension(640, 480));
frame.setLocationRelativeTo(null);
frame.setVisible(true);
Display.setParent(canvas);
Display.setVSyncEnabled(true);
Display.create();
while (!Display.isCloseRequested()) {
GL11.glClear(GL11.GL_COLOR_BUFFER_BIT);
Display.update();
if (!Keyboard.isKeyDown(Keyboard.KEY_LCONTROL)) //
System.out.println("control is up " + System.currentTimeMillis());
}
This occurs on Windows 7 64bit using LWJGL 2.8.5 and Java 1.7.0_02.