# How to let user use system keyboard in VR mode?

**URL:** <https://forum.babylonjs.com/t/how-to-let-user-use-system-keyboard-in-vr-mode/37708>\
**Category:** Questions\
**Tags:** webxr, xr\
**Created:** [January 29, 2023, 3:19am UTC](https://forum.babylonjs.com/t/how-to-let-user-use-system-keyboard-in-vr-mode/37708 "2023-01-29T03:19:47Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![gunpowderfans](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/gunpowderfans/32/37986_2.png) [@gunpowderfans](https://forum.babylonjs.com/u/gunpowderfans)\
**Post date:** [January 29, 2023, 3:19am UTC](https://forum.babylonjs.com/t/how-to-let-user-use-system-keyboard-in-vr-mode/37708/1 "2023-01-29T03:19:47Z")

</div>

For example, in FrameVR’s VR mode, it provides a keyboard made with GUI.  
Is there a possible way to use the keyboard from system or browser in my Babylon project’s VR mode?

---

<div class="post-metadata">

**Author:** ![gabrieljbaker](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/gabrieljbaker/32/12670_2.png) [@gabrieljbaker](https://forum.babylonjs.com/u/gabrieljbaker)\
**Post date:** [January 30, 2023, 8:08am UTC](https://forum.babylonjs.com/t/how-to-let-user-use-system-keyboard-in-vr-mode/37708/2 "2023-01-30T08:08:05Z")

</div>

Hi @gunpowderfans , Gabe from Frame here! Do you mean being able to use your main computer keyboard with your hands while I’m VR mode?

---

<div class="post-metadata">

**Author:** ![gunpowderfans](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/gunpowderfans/32/37986_2.png) [@gunpowderfans](https://forum.babylonjs.com/u/gunpowderfans)\
**Post date:** [January 30, 2023, 10:25am UTC](https://forum.babylonjs.com/t/how-to-let-user-use-system-keyboard-in-vr-mode/37708/3 "2023-01-30T10:25:49Z")

</div>

Yes actually. I’m wondering if it’s possible

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [January 30, 2023, 1:46pm UTC](https://forum.babylonjs.com/t/how-to-let-user-use-system-keyboard-in-vr-mode/37708/4 "2023-01-30T13:46:42Z")

</div>

AFAIK it shouldn’t be a problem using keyboard events while in an XR session. it should work the same, as this is a browser API.

Of course, the keyboard input should not be blocked by the VR environment (like windows MR does from time to time).

This works - [WebXR basic example with teleportation | Babylon.js Playground (babylonjs.com)](https://playground.babylonjs.com/#9K3MRA#1142) if you stay in the browser context (while vr is running).

---

<div class="post-metadata">

**Author:** ![RainerHeintzmann](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/rainerheintzmann/32/32692_2.png) [@RainerHeintzmann](https://forum.babylonjs.com/u/RainerHeintzmann)\
**Post date:** [August 14, 2023, 9:43am UTC](https://forum.babylonjs.com/t/how-to-let-user-use-system-keyboard-in-vr-mode/37708/5 "2023-08-14T09:43:36Z")

</div>

… what about the system keyboard of the VR goggles, which (e.g. Pico 4) do not have a hardware keyboard. Can one somehow trigger to use such a system keyboard for some user input?

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [August 14, 2023, 10:22am UTC](https://forum.babylonjs.com/t/how-to-let-user-use-system-keyboard-in-vr-mode/37708/6 "2023-08-14T10:22:36Z")

</div>

`isSystemKeyboardSupported` was added to the WebXR specs a few months ago. It should allow you to trigger the system keyboard in XR, if the browser supports it.

This is the tutorial on how to use it in the Quest browser (which does support it) - [https://developer.oculus.com/documentation/web/webxr-keyboard/](https://developer.oculus.com/documentation/web/webxr-keyboard/) . This is not (yet) integrated in Babylon

---

<div class="post-metadata">

**Author:** ![Mike\_Mainguy](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mike_mainguy/32/33130_2.png) [@Mike\_Mainguy](https://forum.babylonjs.com/u/Mike_Mainguy)\
**Post date:** [August 23, 2023, 4:13pm UTC](https://forum.babylonjs.com/t/how-to-let-user-use-system-keyboard-in-vr-mode/37708/7 "2023-08-23T16:13:27Z")

</div>

I’ve been using this a bit and I have a strange problem that…for whatever reason, occasionally my controllers will stop working. I’m still researching, but wondering:  
“Is anyone else using this right now?” couple of strange things I noticed:

1. the “babylon hands” freeze when you open the keyboard. It mentions in the article that it puts the xr system into a blurred state, but I’ve tried to detect this and can’t seem to figure it out.
2. the “frozen controller” problem only happens once and a while…I can definitely make it happen if I click outside the keyboard, but even just using the keyboard normally occasionally makes it happen.  
I’ll post an example here after I have some time to build a simple example.

---

<div class="post-metadata">

**Author:** ![Mike\_Mainguy](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mike_mainguy/32/33130_2.png) [@Mike\_Mainguy](https://forum.babylonjs.com/u/Mike_Mainguy)\
**Post date:** [August 23, 2023, 4:54pm UTC](https://forum.babylonjs.com/t/how-to-let-user-use-system-keyboard-in-vr-mode/37708/8 "2023-08-23T16:54:18Z")

</div>

> **[Babylon.js Playground](https://playground.babylonjs.com/#YABVFQ%238)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

Here’s an example of what I mean. you can use controller x button to open the ‘native’ vr keyboard. It “mostly” works, but occasionally (looks like maybe if ray is intersecting something else when I hit it) it will freeze things up, with no apparent error/exception.

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [August 23, 2023, 7:29pm UTC](https://forum.babylonjs.com/t/how-to-let-user-use-system-keyboard-in-vr-mode/37708/9 "2023-08-23T19:29:59Z")

</div>

Let me add @RaananW to the issue so he can have a look after his vacations.

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [August 23, 2023, 7:30pm UTC](https://forum.babylonjs.com/t/how-to-let-user-use-system-keyboard-in-vr-mode/37708/10 "2023-08-23T19:30:03Z")

</div>

Assigned @RaananW on August 23, 2023, 7:30pm UTC



---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [August 28, 2023, 10:17am UTC](https://forum.babylonjs.com/t/how-to-let-user-use-system-keyboard-in-vr-mode/37708/11 "2023-08-28T10:17:35Z")

</div>

I will look into that during this or next week. I wanted to add the virtual keyboard as a feature (mainly because of all the hiccups you are experiencing). Will work on that.

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [November 24, 2023, 2:57pm UTC](https://forum.babylonjs.com/t/how-to-let-user-use-system-keyboard-in-vr-mode/37708/12 "2023-11-24T14:57:09Z")

</div>

Unassigned @RaananW on November 24, 2023, 2:57pm UTC


