I had an idea you can set hotkeys for items so click on sword set hot key to 1 then pick hot key 2 shovel hot key 3 etc.
Or a scroll option for items.
current_item += 1; if (current_item >= weapon_num) { current_weapon = 0; }
Something like that would be very useful.