Open the escape menu and press your set keybind (Default is F5) to open the item spawner menu, select an item from the list, adjust the quantity using the buttons, and click 'Spawn Item' to add the selected item to your inventory.
Configuration
Keybind to open the UI can be changed through the config file.