if (event.isKeyPressed()) { l.keyPressed(event); } else if (event.isKeyReleased()) { l.keyReleased(event);
try { if (event.isKeyPressed()) { l.keyPressed(event); } else if (event.isKeyReleased()) { l.keyReleased(event); } } catch (Throwable ex) { log.error("Exception in KeyboardListener", ex);
	public synchronized void fireEvent(KeyboardEvent event) {		if (event != null) {			for (Iterator i = listeners.iterator(); i.hasNext();) {				KeyboardListener l = (KeyboardListener) i.next();				if (event.isKeyPressed()) {					l.keyPressed(event);				} else if (event.isKeyReleased()) {					l.keyReleased(event);				}				if (event.isConsumed()) {					break;				}			}		}	}