How to create a rating scale by a keyboard instead of mouse?

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10): Win 10
PsychoPy version (e.g. 1.84.x): 3
Standard Standalone? (y/n) If not then what?:
**What are you trying to achieve?:**I am quit new in psychopy. My experiment is not so complex just a random pictures with a question. I have almost done every thing except the answers. I want to set a question in a scale (e.g 1= not at all,… 5= completely painful ) and save the RT and the answers (1,2,…5). I made a text component to ask the question and the key object to identify the answers (1…5) but in the excel file i dont see any answers or RT. i made the question by rating scale component which was really helpful, the problem was using the mouse instead of keyboard.

What did you try to make it work?:
I mean my keyboard component does not work.
What specifically went wrong when you tried that?:
There is no error, every thing is going well wthitout the answeres. I checked the Forced end of Routine, but it didnot work, I have checked the time of the text and key component which are the same as 3 s.
Is anyone able to advice?
Include pasted full error message if possible. “That didn’t work” is not enough information.

Please could you show screenshots of your routine and the rating, mouse and keyboard components?

hi wakecater,
I dont have mouse components, actually i just understand that keyboard component is working with the numbers of keyboard which is in the above part of it, not the right part of keyboard.
thank u for your attention.