}
}
private void processKeyboardEvents(final NiftyInputConsumer inputEventConsumer) {
while (Keyboard.next()) {
KeyboardInputEvent event = keyboardEventCreator.createEvent(Keyboard.getEventKey(), Keyboard.getEventCharacter(), Keyboard.getEventKeyState());
// due to or short-circuiting on true, the event will get forward to keyboardEventsOut if keyboardEventsOut=true
if (!niftyHasKeyboardFocus || !inputEventConsumer.processKeyboardEvent(event))
keyboardEventsOut.offer(event);
}
}