KeyRef with shadowed attribute