while (Keyboard.next()) {
char ch = Keyboard.getEventCharacter();
int key = Keyboard.getEventKey();
boolean state = Keyboard.getEventKeyState();
for (Behavior c : keyListeners) {
c.keyEvent(new KeyEvent(key, ch, state));
}
}
}
control.updateBehavior();