Is there any way to detect key pressing in Lua?
Im using replit for excecuting my own code. (Im new to lua)
In roblox (eLua), computerCraft mod, there some kind of key function that lets you detect, if key up or down, what kind of key pressed. i need same result but in replit.
AKA:
Computer Craft:
local event, key, isHeld = os.pullEvent("key")
while true
write(keys.getName(key))
print( isHeld and " is being held." or " was pressed." )
end