# Input::Text event produces weird output

**URL:** <https://discourse.piston.rs/t/input-text-event-produces-weird-output/145>\
**Category:** Uncategorized\
**Created:** [October 5, 2017, 1:58am UTC](https://discourse.piston.rs/t/input-text-event-produces-weird-output/145 "2017-10-05T01:58:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunjay](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.piston.rs/sunjay/32/27_2.png) [@sunjay](https://discourse.piston.rs/u/sunjay)\
**Post date:** [October 5, 2017, 1:58am UTC](https://discourse.piston.rs/t/input-text-event-produces-weird-output/145/1 "2017-10-05T01:58:45Z")

</div>

Hi,  
Is this supposed to happen? When I look at the text in `Input::Text` events, everything works correctly if I’m just hitting regular keys like `a`, `b`, `c`, etc. but if I hit `Ctrl` + any of those keys, I start to get `Text("\u{1}")`, `Text("\u{2}")`, `Text("\u{2}")`.

What can I do to reliably get the text of the current key being pressed?
