Loop until an S is typed