# Key event prevents writing HTML input element keys on the page

**URL:** <https://phaser.discourse.group/t/key-event-prevents-writing-html-input-element-keys-on-the-page/10202>\
**Category:** Phaser 3\
**Created:** [September 1, 2021, 1:17pm UTC](https://phaser.discourse.group/t/key-event-prevents-writing-html-input-element-keys-on-the-page/10202 "2021-09-01T13:17:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jiri\_Sikora](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/jiri_sikora/32/5544_2.png) [@Jiri\_Sikora](https://phaser.discourse.group/u/Jiri_Sikora)\
**Post date:** [September 1, 2021, 1:17pm UTC](https://phaser.discourse.group/t/key-event-prevents-writing-html-input-element-keys-on-the-page/10202/1 "2021-09-01T13:17:55Z")

</div>

Hello,  
I am working on 2D game in Phaser, now I’m adding chat to the game, just clasic element, where you can type text, but, when I adding keys to input of Phaser, like W, A, S, D… it wont press these keys in the HTML input element, wich is on the top of the screen, I can type anything other, wich is not added to input of Phaser keys.

Iam also try out some functions that disable Phaser keys, like this one:

` scene.input.keyboard.enabled = false;`

But it wont work… ☹

---

<div class="post-metadata">

**Author:** ![Jiri\_Sikora](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/jiri_sikora/32/5544_2.png) [@Jiri\_Sikora](https://phaser.discourse.group/u/Jiri_Sikora)\
**Post date:** [September 1, 2021, 1:48pm UTC](https://phaser.discourse.group/t/key-event-prevents-writing-html-input-element-keys-on-the-page/10202/2 "2021-09-01T13:48:51Z")

</div>

![image](https://global.discourse-cdn.com/free1/uploads/phaser1/original/2X/e/e16e4c8b8c932991db070711d42d4978793fe91d.png)  
It just needed to setup second parameter as false… now its working well
