- Abstracted mode setting in Main
- Added keydown listener in Main for unprintable(?) characters i.e. esc