This article explains how to charge a Logitech keyboard. The instructions apply to all Logitech wireless keyboard models.
FOUR years of battery life? Logitech's 2017 iPad Slim Folio keyboard case
Use the charging cable that came with your keyboard. Plug the small end into the charging port on the back of the device, and plug the other end into your charger or computer. If you don't have the original charger, you can use any micro USB connector.
While most Logitech keyboards have a built-in battery, some models, such as the Logitech K800, use replaceable AA or AAA batteries. Look for a removable plate on the bottom of the keyboard to locate and replace the batteries.
The micro USB charging port is located on the back of the device, usually on the right side. The exact location may vary depending on the model. If you don't have the manual, try searching for your exact model number.