How do I choose a category for a transaction?

You can click the field name "Category" and choose one of the categories from the dropdown.