Generalized version for many shortcuts

Maybe need to refactor for functions in loop