How would you get an input, and make it affect something?

Try AMyPawn : public APawn rather than AMyPawn ; public APawn.