InputAxis Always Returning Zero Even When Bound in C++?

So I’ve been trying to move my Pawn based on inputs, but the value from the bound function is always zero.
I have even afterward tried this through a blueprint and it works perfectly.

Here is my script: RTSCamera.cpp - Pastebin.com