Hello, I am currently trying to make a map editor using Irrlicht and Qt4. I can process mouse events and keyboard events separately, but I need to actually be able to process the two together. For example, to move around the scene, I want the user to click the window with the right button, and while the right button is held, the wasd keys can be used to move around.

I looked at Keyboard modifiers, but that doesn't work since it only registers the keyboard events before the mouse click.

My question is: is it possible to hold down a mouse button, but still receive keyboard input?