The inputclear statement clears the keyboard type-ahead buffer.
inputclear
print ’Do you wish to continue? (y/n) ’: inputclear input answer,1
BASIC (glossary), cleardata statement