Basically, what I want to achieve is the second example here:
As an example, we can make the space bar work as an additional ctrl key when held (similar to Space2ctrl) with the following sequence of commands.
This little hack for X turns the spacebar key into another control key when used in combination. When used alone, it behaves like the ordinary space bar on the key release event. Especially useful with Emacs.
- Space+x should send Command+X,
- while Space pressed and released should send one space character.