Show app in native keyboard settings

I want to create a custom keyboard. I was figured out to show keyboard settings via "open native settings " .
But I don’t have any idea what I have to do to show my app on this system keyboard list.
It seems I need to install my app as a system app and need the permission "WRITE_SECURE_SETTINGS " but I don’t know about the workflow.
Thanks for your help.