Converting accessKeys into a class