The AC adapter is used for connecting the keyboard with a power source so that it can operate. It establishes a secure connection on which the keyboard can be played.