Generate a topic by thinking of something in the world that interests you or looking at the list of topics in your assignment. If you aren't given specific topics by your professor, you can always think about
The key to generating a great topic is to be genuinely interested in it. Pick something that makes you emotional (whether excited or scared)--it'll help keep you motivated when the research gets tough.
Research topics are difficult if they are too narrow or too broad. Keep topics manageable by narrowing them down by geographic region, by culture, by demographics, or by time period. If a topic is too narrow, you may not find any information about it. If the topic happened more recently (ex. in the last week), you won't be able to locate scholarly sources such as books or articles. Rather, only newspapers and magazines articles (and maybe websites) will exist.
You need to generate keywords because library databases and resources don't behave like Google: you can't just type in your whole research question and expect to find results. Instead, you'll need to break down the main concepts of your topic into chunks.
Keywords can be (but are not limited to):
Be creative! Keywords don't always have to be one word. Try to distil your topic into 2-4 main keywords.