A problem when I click on buttons to make movement during play mode

I made a script to control my player movement that’s correct. In play mode, the forward movement works, but when I click on the right or left buttons on my PC to make a right or left movement, it doesn’t work.

However during this Play Mode, when I click on my screen, the buttons work and movements are like in the script… I need every time to click on my screen during the play made for buttons to work… PLEASE HELP!!

// share your code here or nobody will answer your post