There are multiple ways to do so, this is just one of them:
Here's a small plugin that I made (right-click, save as...):
https://downloads.aerosys.blog/plugins/MK_HotKeys.js
This plugin lets you bind a Common Event to a HotKey, so it's also useful in many other cases. And if you don't like mine, there are also many others out there.
Anyway, you need a Common Event (those are defined in the database). Call it something like "Open Item Menu". In this Event, you put just one Script Call (Tab 3 -> advanced) and paste this:
Code:
SceneManager.push(Scene_Item)
Remember the ID of your Common Event or note it down on a sheet of paper. We need it later.
Next, you need to find out the keycode of the letter Q. It's 81. You can look them up on this site:
https://keyjs.dev/
Finally, you can use both script calls in any eventing to enable or disable this function:
Code:
$gameSystem.registerHotKey(81, 1) // Bind letter code 81 (Q) to Common Event 1
$gameSystem.unregisterHotKey(81) // Unbind letter code 81 (Q)
Replace the number 1 with your Common Event ID.