I have this exact same problem, using LibreWolf, which is basically FireFox... It's preventing me from logging into a break-glass account to fix an issue. I just created a new post for this issue here: https://xcp-ng.org/forum/topic/9629/keyboard-support-xo-vm-console