1. Go to the Dashboard of the domain in question
2. Scroll down to the keyword section. Click the "Add keyword"-button.
3. Click "+ Bulk import" and then choose your file.
4. Follow the following pattern in the text window or a .txt file: keyword | group
The picture results in the first two keywords being grouped to group1 and the last one to group2.