Drag an item to another slot, or click it and then click where it goes. Right-click sends it between pack and hotbar; a number key sends the item under the mouse to that hotbar slot. The hotbar is the row at the bottom.