I already created a custom TOTP API Plugin that help this case, so you can do register a QR code from outside Keycloak user page and using your custom page.
For more details, you can view in my GitHub repo: https://github.com/arisusantolie/keycloak-totp-api-provider