In general it might be good to share code between the shortcuts and the buttons, since they should each be doing the same exact thing