Separated out the key mappings in lua.