# Code to focus on input box (disable keypress)?

**URL:** <https://forum.kirupa.com/t/code-to-focus-on-input-box-disable-keypress/124217>\
**Category:** Uncategorized\
**Created:** [October 1, 2004, 12:46am UTC](https://forum.kirupa.com/t/code-to-focus-on-input-box-disable-keypress/124217 "2004-10-01T00:46:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brandon](https://avatars.discourse-cdn.com/v4/letter/b/f08c70/32.png) [@Brandon](https://forum.kirupa.com/u/Brandon)\
**Post date:** [October 1, 2004, 12:46am UTC](https://forum.kirupa.com/t/code-to-focus-on-input-box-disable-keypress/124217/1 "2004-10-01T00:46:04Z")

</div>

is there a code that will disable key press all together or to focus on just the input box so that i can type with the space key (space is used to pick objects up in game not in use when this menu is open anyway).
