Migrating Bunzaga's keyboard handler into game.js, using F8 to toggle client.loggingEnabled