@Override
    public void keyPressed(int key, char c) {
		if(!inputEnabled)
			return;
		ArrayList<GameKeyListener> keyListenersCopy = new ArrayList<GameKeyListener>(keyListeners); //Create a copy because scripts can register keypress components.
		System.out.println("Pressed key: " + key);
		Iterator<GameKeyListener> it = keyListenersCopy.iterator();
		while(it.hasNext()) {
			GameKeyListener next = it.next();
			next.KeyDown(key, c);
		}
    }