This is considered slow hacking, we don't support slow hacking here. Second of all, the code you wrote will not work because you returned return PLUGIN_HANDLED when really you should return PLUGIN_HANDLED_MAIN. Toggleconsole isn't the only way to access the console.