Check your log files for any error messages. Maybe you are using some code that doesn't work as expected outside the editor.
With some hope, the log files will tell you something is wrong, and hopefully give you a call stack so you can find the script that is having problems.
Once you found the problem, fix it. Look for every possible call that could result in the error you see in your log.
If this doesn't cut it:
Make a new simple project which detects mouse input to make sure it's nothing wrong with your system/unity installation. If it still doesn't work, this rules out the possibility that your other scripts aren't doing anything funky, though highly unlikely.
I´m using Bolt visual scripting, I desinstalate and reinstalate the versions, even erase the project and started again, and still nothing, the build doesn´t read the inputs.