I forgot to put sliderStarted as the start condition of the keyboard response, now it’s working perfectly fine locally.
But now when running online it always shows a TypeError because the Spacebar is not assigned (TypeError: space_lottery.keys is undefined). This is the code in JavaScript:
if (slider_lottery.getRating() !== undefined) {
if (space_lottery.keys.includes('space')) {
continueRoutine = false;
}
}