How do I keep multiple answers when I want state to delete some of the observations?

Normally I write the following, if I want to keep only one answer.

keep if xx==1

But now I want to keep more than one answer, why I guess that I should command something like:

keep if (xx=1), (xx==2)

But it doesnt work..