Different trigger codes for different keypresses

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

OS (e.g. Win10): Win7
PsychoPy version (e.g. 1.84.x): v1.83.04
**Standard Standalone? (y/n) y If not then what?:
**What are you trying to achieve?:I want to have a fixed trigger code for each key (Ex. 110 for ‘up’ , 120 for ‘down’ , etc)
**What did you try to make it work?:I made a .csv file with 2 columns (key_name, key_ID) with 4 rows for 4 keys and their special trigger codes.
In a response routine I put key_resp and parallelOut with startData: $key_ID.

**What specifically went wrong when you tried that?:when i run it, the trigger codes comes sequentially by pressing each key.

Include pasted full error message if possible. “That didn’t work” is not enough information.

Choosing the trigger code will require you to use a code component according to which key was pressed