title: Is there a function for checking if an action map key was pressed in Unreal?
body: <p><a href="https://i.stack.imgur.com/rd0EK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rd0EK.png" alt="wasInputKeyJustPressed" /></a></p>
  <p>So inside the player controller there is a nice function called <code>WasInputKeyJustPressed</code>, you give it a <code>key</code> and it outputs a <code>bool</code>. I was curious if there was a similar function for Action Keys. For example, if I had an action mapping called <code>MyActionKey</code> which was tied to the Space bar. Is there a function like <code>WasActionKeyJustPressed</code> that essentially does the same thing as the original? If not how can I detect that with my player controller in a similar manner to <code>WasInputKeyJustPressed</code>?</p>
  <p>I am not interested with the <code>InputAction MyActionKey</code> for this case it does not work for me. I am really looking for a function that will just output whether or not that particular Action Key is pressed in a <code>bool</code> form.</p>
  <p>If this is a custom function that needs to be written then it would be nice if say I could pass in the name of the Action Key. <strong>I'd prefer if the solution was in C++.</strong></p>