import threading
import keyboard
from platforms import api
from recognition.actions.library.vocola.vocolakeys import send_input
import time
import threading

shortcuts = {
    'back': 'backspace'
}

def add_keyboard_shortcuts(keys):
    new_keys = []
    for combo in keys:
        new_keys.append([shortcuts.get(k, k) for k in combo])
    return new_keys

def hold(keys):
    api.type_keypresses(keys, direction='down')

def press(keys):
    keyboard.press(add_keyboard_shortcuts(keys))

def release(keys):
    keyboard.release(add_keyboard_shortcuts(keys))

def press_and_release(keys):
    send_input('{' + '+'.join(keys) + '}')
@@ -56,77 +56,8 @@
 api%0A
-from recognition.actions.library.vocola.vocolakeys import send_input%0A
 impo
@@ -165,20 +165,49 @@
     
-new_keys = %5B
+return %5Bshortcuts.get(k, k) for k in keys
 %5D%0A  
@@ -212,21 +212,20 @@
     for 
-combo
+item
  in keys
@@ -284,13 +284,12 @@
  in 
-combo
+item
 %5D)%0A 
@@ -548,42 +548,84 @@
     
-send_input('%7B' + '+'.join(keys) + '%7D'
+new_keys = add_keyboard_shortcuts(keys)%0A    keyboard.press_and_release(new_keys
 )

use keyboard package again