You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: key.go
    path of file: ./repos/gdlv/vendor/gioui.org/io/key
    
    the code of the file until where you have to start completion: // SPDX-License-Identifier: Unlicense OR MIT

/*
    
func keySetContains(keySet, name string) bool {
	// Check for single key match.
	if keySet == name {
		return true
	}
	// Check for set match.
	if len(keySet) < 2 || keySet[0] != '[' || keySet[len(keySet)-1] != ']' {
		return false
	}
	keySet = keySet[1 : len(keySet)-1]
	for len(keySet) > 0 {
		key, rest, _ := cut(keySet, ",")
		keySet = rest
		if key == name {
			return true
		}
	}
	return false
}