c3d.keypressed

A callback function which gets called when you press key on the keyboard or when you have the key held down this gets triggered repeatedly

arguments

function c3d.keypressed(key,is_held)
    if key == "q" and is_held then
        error("held down the 'q' key",0)
    end
end