# Key Pressed

Grammar — Key Pressed
FlagsNative | Function

Returns the key pressed. Use in response to a “Key Pressed” event.

Returns — int<preset::Key>

native int EventKeyPressed();

# Supported triggers

Category: UI / Input

# Examples

mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmodbase.stormdata/LibPVEB.galaxy:2983

        }

        if (!(((EventKeyPressed() == 40) || (EventKeyPressed() == c_key1) || (EventKeyPressed() == c_key2) || (EventKeyPressed() == c_key3) || (EventKeyPressed() == c_key4) || (EventKeyPressed() == c_key5)))) {
            return false;
        }

mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmodbase.stormdata/LibPVEB.galaxy:2983

        }

        if (!(((EventKeyPressed() == 40) || (EventKeyPressed() == c_key1) || (EventKeyPressed() == c_key2) || (EventKeyPressed() == c_key3) || (EventKeyPressed() == c_key4) || (EventKeyPressed() == c_key5)))) {
            return false;
        }

mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmodbase.stormdata/LibPVEB.galaxy:2983

        }

        if (!(((EventKeyPressed() == 40) || (EventKeyPressed() == c_key1) || (EventKeyPressed() == c_key2) || (EventKeyPressed() == c_key3) || (EventKeyPressed() == c_key4) || (EventKeyPressed() == c_key5)))) {
            return false;
        }

mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmodbase.stormdata/LibPVEB.galaxy:2983

        }

        if (!(((EventKeyPressed() == 40) || (EventKeyPressed() == c_key1) || (EventKeyPressed() == c_key2) || (EventKeyPressed() == c_key3) || (EventKeyPressed() == c_key4) || (EventKeyPressed() == c_key5)))) {
            return false;
        }

mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmodbase.stormdata/LibPVEB.galaxy:2983

        }

        if (!(((EventKeyPressed() == 40) || (EventKeyPressed() == c_key1) || (EventKeyPressed() == c_key2) || (EventKeyPressed() == c_key3) || (EventKeyPressed() == c_key4) || (EventKeyPressed() == c_key5)))) {
            return false;
        }

mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmodbase.stormdata/LibPVEB.galaxy:2983

        }

        if (!(((EventKeyPressed() == 40) || (EventKeyPressed() == c_key1) || (EventKeyPressed() == c_key2) || (EventKeyPressed() == c_key3) || (EventKeyPressed() == c_key4) || (EventKeyPressed() == c_key5)))) {
            return false;
        }

mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmodbase.stormdata/LibPVEB.galaxy:2993

    }

    lv_key = EventKeyPressed();
    auto9D6A95EF_val = lv_key;
    if (auto9D6A95EF_val == c_key1) {

mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmodbase.stormdata/LibPVEM.galaxy:3071

        }

        if (!(((EventKeyPressed() == 40) || (EventKeyPressed() == c_key1) || (EventKeyPressed() == c_key2) || (EventKeyPressed() == c_key3) || (EventKeyPressed() == c_key4) || (EventKeyPressed() == c_key5)))) {
            return false;
        }

mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmodbase.stormdata/LibPVEM.galaxy:3071

        }

        if (!(((EventKeyPressed() == 40) || (EventKeyPressed() == c_key1) || (EventKeyPressed() == c_key2) || (EventKeyPressed() == c_key3) || (EventKeyPressed() == c_key4) || (EventKeyPressed() == c_key5)))) {
            return false;
        }

mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmodbase.stormdata/LibPVEM.galaxy:3071

        }

        if (!(((EventKeyPressed() == 40) || (EventKeyPressed() == c_key1) || (EventKeyPressed() == c_key2) || (EventKeyPressed() == c_key3) || (EventKeyPressed() == c_key4) || (EventKeyPressed() == c_key5)))) {
            return false;
        }

mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmodbase.stormdata/LibPVEM.galaxy:3071

        }

        if (!(((EventKeyPressed() == 40) || (EventKeyPressed() == c_key1) || (EventKeyPressed() == c_key2) || (EventKeyPressed() == c_key3) || (EventKeyPressed() == c_key4) || (EventKeyPressed() == c_key5)))) {
            return false;
        }

mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmodbase.stormdata/LibPVEM.galaxy:3071

        }

        if (!(((EventKeyPressed() == 40) || (EventKeyPressed() == c_key1) || (EventKeyPressed() == c_key2) || (EventKeyPressed() == c_key3) || (EventKeyPressed() == c_key4) || (EventKeyPressed() == c_key5)))) {
            return false;
        }

mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmodbase.stormdata/LibPVEM.galaxy:3071

        }

        if (!(((EventKeyPressed() == 40) || (EventKeyPressed() == c_key1) || (EventKeyPressed() == c_key2) || (EventKeyPressed() == c_key3) || (EventKeyPressed() == c_key4) || (EventKeyPressed() == c_key5)))) {
            return false;
        }

mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmodbase.stormdata/LibPVEM.galaxy:3081

    }

    lv_key = EventKeyPressed();
    auto9D6A95EF_val = lv_key;
    if (auto9D6A95EF_val == c_key1) {