Modifier keys not detected

It seems something broke and the OnKeyboard logic node isn’t picking up any modifier keys (neither shift, alt, nor ctrl).

Trying to find out if it is me or Armory, I’d like to get at the actual key pressed. How do I find out and print/trace which key on the keyboard was pressed, either through nodes or scripting?