code: func (l VirtualDeviceList) FindByKey(key int32) types.BaseVirtualDevice {
  	for _, device := range l {
  		if device.GetVirtualDevice().Key == key {
  			return device
  		}
  	}
  	return nil
  }
docs: // FindByKey returns the device matching the given key.