Moved i keycode event listener to inventory class