keyboard.isup(key)function

Checks if a key is up.

Parameters

key

A string or a number that represents the key to be checked for up position. See the list of supported key codes.

Return value

This function true if the key is up or false otherwise.

Example

--! luart-extensions import keyboard local ui = require "ui" local win = ui.Window("Press the SPACE key", 400, 280) local lbl = ui.Label(win, "Press the SPACE key to hide this message !") lbl:center() await win:showasync() async(function() while win.visible do sleep() lbl.visible = keyboard.isup("SPACE") end end) waitall()