public void handleKeyEvent(KeyEvent keyEvent) {

		// The code of the key that is associated with this event.
		int key =  keyEvent.getKeyCode();
		
		switch(keyEvent.getID()) {
		
		case KeyEvent.KEY_PRESSED: 
			Log.debug("Pressed key: " + key);
			keyPressed.add(key);
			break;
			
		case KeyEvent.KEY_RELEASED: 
			Log.debug("Released key: " + key);
			keyReleased.add(key);
			break;
		
		default: 
			break;
		}
		
	}