Removing all the console.log calls except the key code when debug is enabled