If you use a wired keyboard, plug it into the USB slot. Or you can buy a USB-C converter and then plug in the keyboard for Mac to recognize it. Or else, if you have a Bluetooth keyboard, you can connect it directly using the Bluetooth function.