-#define KEY_CONSOLEACTIVE_FORCED 2
-extern int key_consoleactive;
-extern keydest_t key_dest;
-
-void Key_Event (int key, qboolean down);
-void Key_Init (void);
-void Key_WriteBindings (qfile_t *f);
-void Key_SetBinding (int keynum, char *binding);
+#define KEY_CONSOLEACTIVE_FORCED 4
+extern int key_consoleactive;
+extern char *keybindings[MAX_BINDMAPS][MAX_KEYS];
+
+extern void Key_ClearEditLine(int edit_line);
+extern qboolean chat_team;
+extern char chat_buffer[MAX_INPUTLINE];
+extern unsigned int chat_bufferlen;
+
+void Key_WriteBindings(qfile_t *f);
+void Key_Init(void);
+void Key_Init_Cvars(void);
+void Key_Event(int key, char ascii, qboolean down);