Movement Input using Text Widget

Hey, So im trying to use a text widget to cast a movement input onto the character onTextCommitted, but the character is not moving as the cast keeps failing. Any help is appreciated, im quite new to unreal engine.

Try
GetPlayerController → GetControlledPawn → Cast…