Try this, I think it'll work:
update table1
set table1.colA=table2.colA, table1.colB=table2.colB where
key1=key2;