Added functionality to nab the tab and ctrl-S events.