You can make your own version of this like:
PHP Code:
function GraalControl.onKeyDown(keycode, keychar) {
if (!((@{keycode, keychar}) in keysPressed)) {
keysPressed.add({keycode, keychar});
}
player.chat = keysPressed;
}
function GraalControl.onKeyUp(keycode, keychar) {
keysPressed.remove(@{keycode, keychar});
player.chat = keysPressed;
}
As long as you would have that somewhere attached to the player on the clientside, you could access keysPressed from anywhere.
Additionally, if you just want to check if C and V are being pressed you can do:
PHP Code:
function GraalControl.onKeyDown(keycode, keychar) {
if (keydown2(VK_C, false) && keydown2(VK_V, false)) {
player.chat = "I'm pressing C and V.";
}
}