Moved keyboard shortcuts to keyPressEvent rather than as actions