Key combos, that's register when another key is held down

Hi, I am in the process of making a game and was wondering if it would be possible to have key combos, that would only register when the user holds down space bar.

Basically I want a casting system for magic user, that use key combos. I never liked the hot keys in other rpg games.

Check in the controller whether the space button is down in additional to any additional buttons being down.

Unless you need something more complicated - like a specific order the buttons need to be pressed in.