is_key_pressed(key)

returns true if key is pressed.

if util.is_key_pressed(0x41) then -- 'A' key
    log.info("A is pressed")
end

Last updated