before keyboard shortcut code compact