You need to stay in the same key when you tap. The note you tap must be in the scale you are soloing with. Most of the mistake I see from guitar player starting to incorporate tapping is that they'll tap random notes. You must stay in the scale you are using :)
Hope that helps you out.