@Override
	public void input() {
		CKeyEvent k = this.Engine.getKeyboard().nextKeyEvent();
		while(k != null){
			
			if(k.getEventType() == CKeyEvent.KEYEVENT_PRESSED){
				
				if(k.getKeyType() == CKeyInfo.KEY_TYPE_CHARACTER || k.getKeyType() == CKeyInfo.KEY_TYPE_SYMBOL){
					processcharacter(k);
				}else if(k.getKeyType() == CKeyInfo.KEY_TYPE_INPUT){
					processinputkey(k);
				}
				
			}
			
			k = this.Engine.getKeyboard().nextKeyEvent();
		}
		
		CMouseEvent m = this.Engine.getMouse().nextMouseEvent();
		while(m != null){
			
			if(m.getEventType() == CMouseEvent.MOUSEEVENT_PRESSED){
				checkmousecollisions(m);
			}
			
			m = Engine.getMouse().nextMouseEvent();
		}
	}