In you BP_Ninja blueprint, go to the Class Defaults and under the Input section, make sure that the Auto Receive Input is set to Player 0:
If it won’t help, add a Print String node to your Space Bar event and see if it prints anything when pressing space. This way you can narrow down the issue.