Skip to content
On this page

IsKeyBinded

Returns whether a given key is binded or not.

Parameters

NameTypeMandatoryDefault
stringKeystringtrue-

Returns

boolean - returns whether the given key is binded

Usage

ts
import { isKeyBinded } from "keybind";

// Init KeyBind and do some stuff ...

if (isKeyBinded("S")) {
	console.log("S is binded");
} else {
	console.log("S isn't binded");
}