Instead of having your keyboard component force the end of the routine, you need some code in Each Frame
e.g.
if slider.getRating() != None:
if 'space' in key_resp.keys:
continueRoutine=False
When this auto translates, you’ll need to switch the component to Both and then change null (the auto translation of None) to undefined