No problem
Try
keys = event.getKeys()
if slider_bestgedaan.getRating() is not None and 'space' in keys:
continueRoutine=False
No problem
Try
keys = event.getKeys()
if slider_bestgedaan.getRating() is not None and 'space' in keys:
continueRoutine=False