Capture the key pressed in a variable

Mar 09, 2016

I want to capture what key has been pressed on the keyboard and then perform a different action based on that key. For example, if they pressed "c" they get a point and continue. If the press "x" they don't get a point and continue. The user could press any of the keys on the keyboard.

10 Replies
Christie Pollick

Hi Rick -- I see that Wendy and Phil are helping you here, but I wanted to stop in to note as you've mentioned potentially using JavaScript, that is not something for which we'd be able to provide support. Fortunately, if you'd want to go that route, we have lots of community members who are more than willing to share their expertise to assist!

And in case you want to check it out, here is our JavaScript Best Practices sheet, as well. :)

This discussion is closed. You can start a new discussion or contact Articulate Support.