In Ubuntu, Alt+F2 is the shortcut to display the run command-prompt, which is a fast way to execute the commands other than through the Terminal. By default, this shortcut is not enabled in Gnome Shell so that you can not execute the commands through this key combination.
To enable this shortcut, go to the username in the top left panel and then select System Settings.
To enable this shortcut, go to the username in the top left panel and then select System Settings.