web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Using Keystroke input ...
Power Automate
Unanswered

Using Keystroke input with IF function in Power Automate Desktop

(0) ShareShare
ReportReport
Posted on by

Can I( use a key stroke to tell PA which actions (or flow) to execute?
eg; Run flow>wait until keystroke> If shortcut "ctrl A" is pressed, run flow A. If shortcut "ctrl B" is pressed run flow B. Thank you. 

I have the same question (0)
  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    I’m not sure, but in the meantime, you could use an input dialog box, and whatever input is provided by the user, you can then use a switch->case to determine which subflow to run. I typically list out all options with numbers and then use the number chosen to define the next flow. Example:

     

    Label:ReInput 

    input dialogue box to %UserInput%

    1: New Customer

    2: Update Customer

    3: Delete Customer

     


    Switch on %UserInput%

    case 1 - run New Subflow

    case 2 - run Update Subflow

    case 3 - run Delete Subflow

    case Else - display error message “%UserInput% is not a valid selection, click okay to re-enter ”. Go to Label “ReInput”

    End Switch

     

    good luck!

  • VJR Profile Picture
    7,635 on at

    You can check this out if it suits your purpose

     

    Add two keys of Ctrl A and Ctrl B

    VJR_1-1666234442788.png

     

    And then based on the output variable check which one was pressed using an If statement.

     

     

    VJR_0-1666234388703.png

     

     

    Inside the If statement you can also use the Run Desktop Flow action to call another Flow.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 276 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard