Trouble with pyglet input in macOS

OS: MacOS : Sonoma 14.1
Psychopy version: 2024.1.4
Standard Standalone
I am trying to implement a simple stroop experiment; and I have accordingly changed the keyboard and the text component and changed input to Pyglet, but it is not taking the keyboard input. Please help!!!

What did you try to make it work?:

What specifically went wrong when you tried that?:
Include pasted full error message if possible. “That didn’t work” is not enough information.

Seems like a bug to me. Switching Input to PsychToolbox in experiment settings helped me.