Fix wrong class on closed key item.

r? @karlcow