Ok, I figured it out.
The keycode is the index into the keyTable[] array on the following page:
https://construct.svn.sourceforge.net/s ... d/Main.cpp
So:
ControlTableEntry keyTable[] = {
{VK_LBUTTON, "Left mouse button"},
{VK_MBUTTON, "Middle mouse button"},
{VK_RBUTTON, "Right mouse button"},
{VK_TAB, "Tab"},
{VK_RETURN, "Enter"},
{VK_SHIFT, "Shift"},
{VK_LSHIFT, "Shift (left)"},
{VK_RSHIFT, "Shift (right)"},
{VK_CONTROL, "Control"},
{VK_LCONTROL, "Control (left)"},
{VK_RCONTROL, "Control (right)"},
{VK_MENU, "Alt"},
{VK_LMENU, "Alt (left)"},
{VK_RMENU, "Alt (right)"},
{VK_PAUSE, "Pause"},
{VK_ESCAPE, "Escape"},
{VK_SPACE, "Space"},
{VK_HOME, "Home"},
{VK_END, "End"},
{VK_UP, "Up arrow"},
{VK_DOWN, "Down arrow"},
{VK_LEFT, "Left arrow"},
{VK_RIGHT, "Right arrow"},
{VK_INSERT, "Insert"},
{VK_DELETE, "Delete"},
So if you wanted the space key you would do a:
if MouseKeyboard.KeyDown(16):
do your stuff
For readability, you will probably want to just statically define the mapping in a start of layout event.
Cheers!