# HTML5 Virtual Keyboard

**URL:** <https://forum.defold.com/t/html5-virtual-keyboard/65404>\
**Category:** Questions\
**Created:** [June 1, 2020, 4:46am UTC](https://forum.defold.com/t/html5-virtual-keyboard/65404 "2020-06-01T04:46:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![reinard1](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/reinard1/32/20735_2.png) [@reinard1](https://forum.defold.com/u/reinard1)\
**Post date:** [June 1, 2020, 4:46am UTC](https://forum.defold.com/t/html5-virtual-keyboard/65404/1 "2020-06-01T04:46:10Z")

</div>

Is there a way to show up a keyboard for HTML5 builds? (For mobile browsers)

---

<div class="post-metadata">

**Author:** ![Pkeod](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pkeod/32/606_2.png) [@Pkeod](https://forum.defold.com/u/Pkeod)\
**Post date:** [June 1, 2020, 6:32am UTC](https://forum.defold.com/t/html5-virtual-keyboard/65404/2 "2020-06-01T06:32:49Z")

</div>

What are you trying to do?

It can be best to setup a virtual keyboard in game with the keys you want possible like

> [@Get mobile keyboard with html5 (DEF-3503)](https://forum.defold.com/t/get-mobile-keyboard-with-html5-def-3503/6690/19):
>
> This is first reason why i made retro ingame keyboard for player’s nickname instead using of native keyboard: [2018-09-25\_22-58-47] The second reason is control on non-latin alphabet. Don’t forget that user can try to input someone like “моё замечательное имя” and your UI should not break from this.

Also check

> [@Get mobile keyboard with html5 (DEF-3503)](https://forum.defold.com/t/get-mobile-keyboard-with-html5-def-3503/6690/22):
>
> We don’t have an update for this I’m afraid. I did however play around with this a bit during the weekend. On HTML5 it’s possible to at run-time create an input field and give that focus to bring up the native virtual keyboard. You can then poll for input in the text field and forward the input to your Lua code. CODE: [https://github.com/britzl/defold-input/blob/master/in/keyboard.lua](https://github.com/britzl/defold-input/blob/master/in/keyboard.lua) DEMO: [https://britzl.github.io/Defold-Input/](https://britzl.github.io/Defold-Input/) (click on the Keyboard button to test) Note: I wasn’t able to get…

---

<div class="post-metadata">

**Author:** ![reinard1](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/reinard1/32/20735_2.png) [@reinard1](https://forum.defold.com/u/reinard1)\
**Post date:** [June 1, 2020, 7:55am UTC](https://forum.defold.com/t/html5-virtual-keyboard/65404/3 "2020-06-01T07:55:00Z")

</div>

It will be for a registration popup that will input a mobile number.

---

<div class="post-metadata">

**Author:** ![Pkeod](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pkeod/32/606_2.png) [@Pkeod](https://forum.defold.com/u/Pkeod)\
**Post date:** [June 1, 2020, 8:42am UTC](https://forum.defold.com/t/html5-virtual-keyboard/65404/4 "2020-06-01T08:42:48Z")

</div>

In that case, create some buttons with numbers on a popup and use that.
