Add escape event and retab typeahead

See #5