[C++] Set input in PlayerController class

Hi! I’ve add what you said, but it doesn’t work. On the link below says the same, but there the code is written in a Character class.[A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums][1]
Here are two screenshots. I should include something else?