Python Get String From Keyboard Shortcuts