Filter the keys of an object using glob patterns.