function onKeyPressed(code, key) { if (temp.key == "s") triggerserver("weapon", this.name, "board", player.x, player.y); }