Revised main.lua

- Removed escKey and moved its contents to keys.lua