Doing research, outside of my specific interests, for a MS program
You shouldn't say that you want to do something you're not interested in just to gain admission. It will end badly for everyone.

If you're just not certain you're going to like an area, that's a different story. There are a lot of programs where you have the ability to be "matched" with an advisor before or after admission. In such cases, the key is to finding a match you're happy with.

But if you're asking if you need to change research focuses as an undergraduate to align with programs later, the answer is that you don't. It's understood that people are likely to change issues early on. (After all, faculty members do so regularly; why can't students do so before joining their group?)