Simple test should indicate yes or no...let's try a simple re-map of the Inventory key, so instead of "i" maybe "Esc" key.
Change the "i" to whatever is the key to bring up your inventory in Dota2. If this works, then we can script it further from there.