refactor, keyboard escapes