In order to prevent the ALT menu from popping up, you have to simulate a dummy keystroke before releasing ALT so as to fool the browser into thinking that the ALT key was used as a modifier instead of pressed alone.
You can use Ctrl as the dummy keystroke (Shift also works), as shown below:
You have to do this on every action where ALT is used as a modifier.
Also, on the trigger side, you must only override Q, not Alt. Otherwise other programs won't be able to use ALT as a modifier.
On the coming extension update it'll be possible to solve this in a simpler way.