Mouse Click + Space = Drag

I know this is probably a really easy question, but I can’t find anything on it anywhere.

I am building a simple map interface, and I want the user to click the mouse and the spacebar to be able to drag the map. I can do one or the other using “on (press)” or “on (keyPress “<Space>”)” but how do I get them to work together?

Thanks for your help!