Define something in C++

I am new to coding and I’m trying to make a player controller for my game but when I put the letter in that will be used to move the player it comes back as unidentified or undeclared. need help thanks.