cancel action on opening inventory or stats screen.

fixes some associated bugs.