Check Keyboard Events in code

Yes, it’s okay to handle them inside the player controller.

Have you enabled input events?