Modified ticket.py to claer from when Spacebar is pressed