keys = event.getKeys()
if yourslidernamehere.getRating() is not None and 'space' in keys:
continueRoutine=False
in Python, and you then auto-generate JS code and change the ‘Null’ to ‘undefined’ as per wakefields cribsheet.
(Note: I did not try this in 2021.1.2 but it did work in 2020.2.10)
I do not know about the double click, I am sorry.