Why won't this code break?

  while(keyB=true){

= != ==