Added a number of funtions for keyboard shortcuts.