function M.on_key(event_key, pattern) -> fun(event) -> any
function M.gui(event, pattern) -> any
M.entity: table
M.player: table