added the possibility to process all keys, by leaving the "allowedKeys" array empty