Correcting keys class access modifier