automatically place keys