Combined Input Triggering and Erasing

- Replace untrigger functions with triggered_once.
- Expose triggered_once in Lua.