protected void processKeyChange(KeyEvent e, boolean pressed){
		byte KeyEventType;
		
		if(pressed){
			KeyEventType = CKeyEvent.KEYEVENT_PRESSED;
		}else{
			KeyEventType = CKeyEvent.KEYEVENT_RELEASED;
		}
		
		//making sure we are not posting multiple PRESSED events
		if(KeyEventType == CKeyEvent.KEYEVENT_RELEASED || !keyPressed(e.getKeyCode())){
			CKeyEvent k = new CKeyEvent(e.getKeyCode(), KeyEventType);
			KeysQueue.add(k);
		}
		
		if(e.getKeyCode()>=0 && e.getKeyCode()<=255){
			KeysArray[e.getKeyCode()] = pressed;
		}
	}