Webgl Build Fail because of WebGLInput.captureAllKeyboardInput

Hello.
My Linux Unity project fails when running the build from the terminal.
This happens only when I use the captureAllKeyboardInput line

It might be something related to the Library Folder, as when I build a new project without the line, and THEN build again with the line, it works.

The build command I use is this:

Unity -quit -batchmode -nographics -projectPath ./unity_src -executeMethod WebGLBuilder.build -output …/webgl_dist

If you suspect the library folder, there isn’t much information on fixing it because the usual thing you do is just delete the library folder and let Unity rebuild it. So I’d just try that.

Hello. I still not managed to make a succesful build from the command line when I have the webcapture line wrtitten. Without it the build works.

Hello!
Did you find a solution to the problem?, I have exactly the same problem with the same line of code