Set up a YubiKey as a software token (HOTP)
Afterwards, the OTP can be entered into OTP fields by pressing and holding the YubiKey button.

Step 1
Insert your YubiKey into the PC.
Then open the program
"Yubico Authenticator".
If you have not installed the program yet, you can download and install it from the manufacturer's website:
Yubico Authenticator

Step 2
Go to the page Token Management and under "Request a software token", select the option "Event-based One-time Password Token (HOTP)..." and click on the button "REQUEST".

Step 3
Copy the 32-character key to the clipboard by clicking the "Copy Key" button.
Alternatively:
Select the key and then use "right-click > Copy" or the keyboard shortcut "CTRL + C".

Step 4
In Yubico Authenticator, go to "Slots".
Select "Slot 2" to avoid overwriting the preconfigured "Yubico OTP" in Slot 1.
Then click on the right side "OATH-HOTP".

Step 5
Paste the key from the clipboard into the "Key" field: "Right-click > Paste" or press "CTRL + V".
Keep the settings "append" and "6 digits", then click "Save".

Step 6
Your YubiKey is now configured.
Before you can use it, it must be activated.
To do so, click "Perform Activation".

Step 7
Now you need to enter two consecutive OTPs from your YubiKey.
Press and hold the YubiKey button.
The form will be submitted automatically, and the second OTP will be requested.
Press and hold the YubiKey button again to complete activation.