src/main/java/de/dosmike/sponge/megamenus/api/elements/concepts/IPressable.java
void fireKeyEvent(
            Player viewer,
            @MagicConstant(valuesFromClass = Buttons.class) Buttons key,
            boolean ctrl
    );
/** This method will be called by the {@link MenuRenderer} when a button is pressed, hovering this element.
     * @param viewer the {@link Player} instance that pressed a key over this element in the assigned renderer.
     * @param key an enum value from {@link Buttons} representing one of the view detectable keys.
     * @param ctrl true if the player held the ctrl-modifier key while pressing buttons for applicable keys.
     */
This method will be called by the  MenuRenderer when a button is pressed, hovering this element.
@param viewer the  Player instance that pressed a key over this element in the assigned renderer.
@param key an enum value from  Buttons representing one of the view detectable keys.
@param ctrl true if the player held the ctrl-modifier key while pressing buttons for applicable keys.
This method will be called by the MenuRenderer when a button is pressed hovering this element . @param viewer the Player instance that pressed a key over this element in the assigned renderer . @param key an enum value from Buttons representing one of the view detectable keys . @param ctrl true if the player held the ctrl - modifier key while pressing buttons for applicable keys .
void fireKeyEvent(
            Player viewer,
            @MagicConstant(valuesFromClass = Buttons.class) Buttons key,
            boolean ctrl
    );
void fireKeyEvent ( Player viewer , @ MagicConstant ( valuesFromClass = Buttons . class ) Buttons key , boolean ctrl ) ;
This method will be called by the {@link MenuRenderer} when a button is pressed, hovering this element.
This method will be called by the { @link MenuRenderer } when a button is pressed hovering this element .