Can I create a shortcut to do this?

The short answer is yes, and the long answer is here Working with modules from Lua scripts in darktable