# Is there a better way to enter names or strings than doing this with every key?

**URL:** <https://forums.unrealengine.com/t/is-there-a-better-way-to-enter-names-or-strings-than-doing-this-with-every-key/281822>\
**Category:** Blueprint\
**Tags:** key, type, unreal-engine, Blueprint, question\
**Created:** [April 27, 2014, 4:07pm UTC](https://forums.unrealengine.com/t/is-there-a-better-way-to-enter-names-or-strings-than-doing-this-with-every-key/281822 "2014-04-27T16:07:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DasMatze](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DasMatze](https://forums.unrealengine.com/u/DasMatze)\
**Post date:** [April 27, 2014, 4:07pm UTC](https://forums.unrealengine.com/t/is-there-a-better-way-to-enter-names-or-strings-than-doing-this-with-every-key/281822/1 "2014-04-27T16:07:55Z")

</div>

Sorry for asking something again, but I can’t do anything else than work with this glorious engine in my free time. Is there a better way to enter names or strings than doing this with every key?

 ![4993-untitled-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/9/b/59b30c9045adefff4fe0c680ceda230d539699cf.jpeg)

If not, there should be. This is just for a resolution setting, so there will be “only” 20 key events but if I wanted to have a chatbox … that’d be a nightmare!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_79f77cce](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_79f77cce](https://forums.unrealengine.com/u/anonymous_user_79f77cce)\
**Post date:** [July 14, 2017, 9:36pm UTC](https://forums.unrealengine.com/t/is-there-a-better-way-to-enter-names-or-strings-than-doing-this-with-every-key/281822/2 "2017-07-14T21:36:04Z")

</div>

**Update** : As of 4.16.2 this method appears to work without issue as the default key value is fixed. Thanks Epic! Leaving the original answer as is below.

* * *

The better way I have found is unfortunately blocked by a bug in the engine. The process is this:

- Create a variable that is a Map, with Key and Integer (or String, w/e) types
- In that Map, fill in each Key you want to respond to and the number you’d like to appear when the Key is hit
- Listen on Any Key, then Find that key in your Map
- Output the Value of the Integer associated with that Key in your Append node

The problem is that right now creating a Map variable with Key as the key variable means that you won’t be able to edit the first Key value, which means you can’t add a second, etc. See the attached screenshot, there should be a Key dropdown next to the 0 box but it won’t show up. I believe this is reflected in this issue but it has no planned fix date: [Unreal Engine Issues and Bug Tracker (UE-42930)](https://issues.unrealengine.com/issue/UE-42930)

Please vote for that issue if this helps.

 ![192114-unreal_dictionary.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/5/a/05a9cfe10776217519a783680b36b7f69acced74.jpeg)
