OSRS Plugin API
    Preparing search index...

    Enumeration KEY_TYPE

    Event id for key typed events. Calls the KeyTypeCallback.

    -- Create a function
    local keyType = function(keyCode)
    osrs.print("Key Type: " .. tostring(keyCode))
    end
    -- Subscribe to the function
    osrs.Events.subscribe(keyType, osrs.Events.KEY_TYPE)