Madison Keys suffered a shock straight-sets defeat to Vera Dushevina in the second round of the Bank of the West Classic in Stanford.