Skip to content

2. Input

fowluhhdevbcfunny edited this page Jun 17, 2024 · 1 revision

To get input, you need to call getKeys(). To use getKeys properly you must use it like so:

if (getKeys(["w", "ArrowUp"])) {
   // your code here.
}

Or for one key:

if (getKeys(["w"])) {
   // your code here.
}

Clone this wiki locally