There is no out-of-the-box way to create custom keyboard shortcuts for Google App Script functions. However, there are a few workaround methods that you can use to achieve this.
One method is to create a custom Google App Script function that acts as a wrapper for the desired function. For example, let's say you want a keyboard shortcut for the "File > New > Spreadsheet" function in Google Drive. You could create a custom function in Google App Script that looks like this:
function newSpreadsheet() {
Drive.Files.create({
mimeType: "application/vnd.google-apps.spreadsheet"
});
}
You could then bind this function to a keyboard shortcut using a Chrome extension such as Shortkeys.
Another method is to use a third-party keyboard shortcuts manager such as AutoHotkey (Windows) or Keyboard Maestro (Mac). These programs allow you to create custom keyboard shortcuts for any action, including running Google App Script functions.