Wow! That was a big one! Thank you so much for pointing it out, it is fixed now! The bug was independent on pressing z fast (but there was another one related to it). The inventory was not reseted to zero after starting a new game without restarting the whole game (facepalm)...
Again thank you all for the feedback, not only helps improving the game but I am learning a lot too!