Ending a routine 0.5 seconds after key press