Added canKeyType method