Implement keyboard shortcuts for the history