code: public void removeKeyListener(KeyListener listener) {
  		keyListeners.remove(listener);
  		keyListenersToAdd.remove(listener);
  		
  		if (!mouseListeners.contains(listener) && !controllerListeners.contains(listener)) {
  			allListeners.remove(listener);
  		}
  	}
docs: Remove a key listener that will no longer be notified
  
  @param listener The listen to be removed