added a start function when key s is pressed