Simpler key hit checks are easier to understand.
Previous changes made key lookup tables unnecessary.
Toggling input keys can be handled more simply without a table.
Standard Lua should be preferred over Underscore.lua for simple operations.