Called when a LuaGuiElement is confirmed, for example by pressing Enter in a textfield.
element: LuaGuiElement — The confirmed element.player_index: uint32 — The player who did the confirming.alt: boolean — If alt was pressed.control: boolean — If control was pressed.shift: boolean — If shift was pressed.name: defines.events — Identifier of the eventtick: uint32 — Tick the event was generated.