Add Esc key functionality Fixes #9