For Debian 12 run the following:
Keep in mind that the owner of the key may distribute updates, packages and repositories that your system will trust (more information).
echo 'deb http://download.opensuse.org/repositories/home:/c71b67b6:/e1a67f897b4f/Debian_12/ /' | sudo tee /etc/apt/sources.list.d/home:c71b67b6:e1a67f897b4f.list
curl -fsSL https://download.opensuse.org/repositories/home:c71b67b6:e1a67f897b4f/Debian_12/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home_c71b67b6_e1a67f897b4f.gpg > /dev/null
sudo apt update
sudo apt install kwrite