Modify KeyboardWindow Judge

Add iConsoleWindow Support