There are a few ways to charge a Mac keyboard. One way is to use an adapter that plugs into the wall and charges the keyboard using USB. Another way is to use a computer power cord that has an outlet on one end and a USB port on the other end. The computer will then plug into the outlet and the keyboard will be charged.