function for batch defining, undefining keys/key aliases