#shortcut api This will be used to check if a shortcut was pressed given some input.