You can change Magic Keyboard options for autocorrection, autocapitalization, and more.
Go to Settings Switch between keyboards with Magic Keyboard and iPhone