Fixed #17 (ESC key) & some formatting

Fixes #17