Your activation key can be found on your license page on pyxeledit.com. See Finding Your License
The key should have to following format:
----- BEGIN ACTIVATION KEY -----
Name
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
----- END ACTIVATION KEY -----
Make sure you copy all the text in the box on your license page (see image below).
If it looks like
ABCD-ABCD-ABCD-ABCD
then you need to use it on the following page to claim your license: http://pyxeledit.com/get/humble.php
or you can get there directly from your Humble download page by clicking the link under "Access your Pyxel Edit license page" that looks like ABCD-ABCD-ABCD-ABCD
Activation key on your license page
It's likely that the application isn't able to store the license to file because of permission issues.
Try deleting the data folder to let the program create it again. You can find it here:
Windows: C:\Users\[username]\AppData\Roaming\PyxelEdit\ELS or similar. You can enter %appdata% as the path in windows explorer to find the Roaming folder quickly.)
Mac: /Users/[username]/Library/Application Support/PyxelEdit/ELS or similar. Open Finder, then choose Go>Go to folder... from the menu to be able to enter the path.
If you have Pyxel Edit running, you can quickly find the ELS folder using the menu Help > Open storage folder, then going up one step to the parent folder (see image below).
Finding the ELS folder
Starting with version 0.4.96, Pyxel Edit is signed by Pyxel Labs AB, instead of the personal signature used by earlier versions. Your license key is stored in your macOS keychain, so the first time you start the new version, macOS asks whether Pyxel Edit may read it. Pyxel Edit explains this before the question appears.
What to choose
Always Allow (recommended): Pyxel Edit reads your license, and macOS won't ask again. macOS may ask for your Mac login password first.
Allow or Deny: Pyxel Edit may not be able to read your stored license and starts unactivated. Paste your license key to activate again.
If you choose Deny, macOS may ask once more, for the password of a keychain called "PrivateEncryptedDatak". It doesn't matter what you choose there. Click Cancel, then paste your license key to activate again.
Chose Allow or Deny by mistake? Restart Pyxel Edit, choose Always Allow if macOS asks, and paste your license key if Pyxel Edit asks for it.
Can't find your license key? Use the resend page (https://pyxeledit.com/get/resend.php) to get your license email again. Bought through Humble? The page links to the Humble order resender.
If you'd rather not give Pyxel Edit access to your keychain at all, you can remove the old stored license and activate again. Have your license key ready.
Please note: "Adobe_AIR_ELS" is shared by all apps built on Adobe AIR. Deleting it also removes data other AIR apps on your Mac have stored, such as saved logins. Older versions of Pyxel Edit (0.4.95 and earlier) will need your license key again. Only do this if you don't use other AIR apps, or don't mind entering their details again.
1. Quit Pyxel Edit.
2. In Finder, choose Go › Go to Folder…, enter ~/Library/Application Support/PyxelEdit and move the folder ELS to the Trash.
3. Open Keychain Access (search for it with Spotlight). In the login keychain, find Adobe_AIR_ELS and delete it.
4. Start Pyxel Edit and paste your license key.
macOS should not ask about the keychain after this.
Why the keychain? Pyxel Edit is built on AIR, a runtime originally made by Adobe. It keeps stored data such as your license encrypted, with the key in your macOS keychain.
Example keychain prompt (may look slightly different)