You can connect a Magic Keyboard to your Mac through Bluetooth or using the Lightning port and charging cable.
There are several iPad keyboard shortcuts you can use with your tablet's on-screen keyboard or an external keyboard.