My Input for the keyboard was not working, whether it was for axis action or Advanced input mapping, none of it worked. But I tested the mouse input for all of the above inputs and it worked. Things got confusing, when in the same action I put multiple inputs, one of them a mouse and the other keyboards, and when I played the keyboard inputs still did not work, until I used the mouse inputs. The mouse input worked as usual, and after that, the keyboard worked, but not before I used the mouse button. Has anyone else had this problem or is it a bug?
Try going to Editor Preferences and checking “Game gets mouse control”, see if it is still happens.