updated inventory adjustments to also act if the enter is pressed