# Switch on Structure?

**URL:** <https://forums.unrealengine.com/t/switch-on-structure/1332151>\
**Category:** Programming & Scripting\
**Tags:** Struct, Switch, unreal-engine, Blueprint, question\
**Created:** [October 14, 2023, 10:08am UTC](https://forums.unrealengine.com/t/switch-on-structure/1332151 "2023-10-14T10:08:08Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 16, 2023, 12:00pm UTC](https://forums.unrealengine.com/t/switch-on-structure/1332151/6 "2023-10-16T12:00:56Z")

</div>

> [@TorQueMoD](#):
>
> Unless a Key is a type of Struct? I don’t think they are.

It is. Would something like this work in this case:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/e/5/de5265f209d65b4ca38e4f9ad526cabdd9ce2f3d.png)

`Key | Enum` could work even better - be more descriptive.

* * *

Hard to tell where the input is coming from _here_ but the Enhanced Input system handles it already.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/4/b/34b495fafa88ceacfa870539e33682da772ecd1d.png)

Alternatively, you can have a scalar modify `Action Values` to evoke specific behaviours:

> [@Enhanced Input System misunderstandings.](https://forums.unrealengine.com/t/enhanced-input-system-misunderstandings/1312554/5):
>
> Now tested (and rather obvious once pointed out!):

---

_[View the full topic](https://forums.unrealengine.com/t/switch-on-structure/1332151)._
