+ }
+
+ if (key_consoleactive && consolekeys[key])
+ {
+ // console only wants key down events
+ if (!down)
+ return;
+
+ // FIXME: this does not support non-QWERTY keyboards
+ if (shift_down)
+ key = keyshift[key];
+
+ Key_Console (key);
+ }
+ else
+ {
+ //
+ // key up events only generate commands if the game key binding is
+ // a button command (leading + sign). These will occur even in console mode,
+ // to keep the character from continuing an action started before a console
+ // switch. Button commands include the keynum as a parameter, so multiple
+ // downs can be matched with ups
+ //
+ if (!down)