Using keyboard buttons to move slider direction left and right

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

OS : Windows 10 Home Version 21 H2 OS Build 19044.1645
PsychoPy version (e.g. 1.84.x): 2020.1.2
What are you trying to achieve?: My experiment uses a slider and participants are asked to move the slider marker to various positions (either in the left or right direction). This experiment will be run online and in a scanner, so I will be using keyboard presses instead of the mouse, but am unsure how to successfully code the values 1, 2, and 3 (in builder or the coder) to indicate left, right and to confirm the selection. Is there a way to do this in the builder or can it only be done through the coder window?

What did you try to make it work?: In the coder I tried: leftKeys=‘1’, rightKeys = ‘2’, acceptKeys=‘3’)

What specifically went wrong when you tried that?:
Include pasted full error message if possible. “That didn’t work” is not enough information. “TypeError: init() got an unexpected keyword argument ‘leftKeys’”