The event is only called once per keypress. The variable is not going to change values midway through the function. You'd have to keep track of which keys are being pressed:
PHP Code:
function GraalControl.onKeyDown(temp.code, temp.key) {
if (! this.key.(@ temp.key)) {
this.key.(@ temp.key) = true;
if (temp.key in {"b", "v", "c"} && this.key.b && this.key.v && this.key.c) {
player.chat = "combo attack!!";
}
}
}
function GraalControl.onKeyUp(temp.code, temp.key) {
this.key.(@ temp.key) = false;
}
Also, for comparison, you need to use == instead of =. One equals sign is used only for assignment.