Add attribute reader for key