function toggle(char,code,modif,event) if char=="h" and event==1 then -- toggle it here endendtpt.register_keypress(toggle);