you should put this code inside your custom character blueprint, not the level blueprint.
characters should be responsible for moving themselves, and pawns/characters are often responsible for controller input logic, so it would be better to put this code inside the character. usually, most code belongs in actors placed in the level, rather than putting code in the level blueprint, because you usually want to be able to reuse code in other levels.