You have to use an SSH key generator to generate SSH key pair. On Linux or Win10 or higher you can use ssh-keygen command. Very popular is also PUTTYGEN.
Please note that public key can be stored in multiple formats. Let suppose you generated two files key.pub and key.pri (.pub for public key and .pri for private key).
If you've used PUTTYGEN, the public key content starts with line like this:
---- BEGIN SSH2 PUBLIC KEY ----
In this case, just simply copy the key.pub file into a location specified in the config section.
If you've used ssh-keygen, the public key content is a single line which looks like this:
ssh-ed25519 AAAA...ZEs5qu tester
In this case, copy the key.pub file into a location specified in the config section and name it authorized_keys - it is necessary in this case, because the public key is OpenSSH's authorized_keys file format.
We will add better detection of file formats, but in the current version, you have to distinct between the two cases yourself (by naming the file authorized_keys if needed).