I inserted the wrong key into my RX 400H key barrel, then used the right key, the barrel got locked...it wouldn't turn. I tried various methods described in this post and others...like lock and unlock the key 5 times then try inserting into barrel...it didn't work...I think what finally worked was this....
just get in the car...lock all doors using the key, then insert into barrel...it worked!