Add keyboard shortcuts for 't' and escape