Help with keybinds

how do you make keybinds like if in my game I wanted to do ctrl + q how do I do that btw if( isKeyDown("ctrl") && isKeyDown("q")); { //wathever the function is }
doesn’t work

It probably doesn’t work because of that semicolon, try this:

if(isKeyDown("ctrl") && isKeyJustPressed("q")){ //whatever the function is }

(you can change “isKeyJustPressed” with “isKeyDown” if u want)

2 Likes

ok ima try

it wont work

Whoops! My bad, I wrote “ctrl” when it’s supposed to be “control” lol

if(isKeyDown("control") && isKeyJustPressed("q")){ 
// whatever the function is 
}
1 Like

ok thanks! it worked

1 Like