# glfwGetKeyName doesn't work all of a sudden

**URL:** <https://discourse.glfw.org/t/glfwgetkeyname-doesnt-work-all-of-a-sudden/1272>\
**Category:** support\
**Created:** [February 21, 2019, 12:49am UTC](https://discourse.glfw.org/t/glfwgetkeyname-doesnt-work-all-of-a-sudden/1272 "2019-02-21T00:49:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aelthien](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@Aelthien](https://discourse.glfw.org/u/Aelthien)\
**Post date:** [February 21, 2019, 12:49am UTC](https://discourse.glfw.org/t/glfwgetkeyname-doesnt-work-all-of-a-sudden/1272/1 "2019-02-21T00:49:32Z")

</div>

I was using this line of code with no problems but all of a sudden it doesn’t seem to work for whatever reason.

```
String currentKey = GLFW.glfwGetKeyName(key, scanCode);

```

Error:(53, 32) java: cannot find symbol  
symbol: method glfwGetKeyName(int,int)  
location: class org.lwjgl.glfw.GLFW

---

<div class="post-metadata">

**Author:** ![Aelthien](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@Aelthien](https://discourse.glfw.org/u/Aelthien)\
**Post date:** [February 22, 2019, 1:16pm UTC](https://discourse.glfw.org/t/glfwgetkeyname-doesnt-work-all-of-a-sudden/1272/2 "2019-02-22T13:16:02Z")

</div>

I forgot to add the natives to the project.

---

<div class="post-metadata">

**Author:** ![dougbinks](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/dougbinks/32/39_2.png) [@dougbinks](https://discourse.glfw.org/u/dougbinks)\
**Post date:** [February 23, 2019, 6:58pm UTC](https://discourse.glfw.org/t/glfwgetkeyname-doesnt-work-all-of-a-sudden/1272/3 "2019-02-23T18:58:32Z")

</div>

Excellent, glad you resolved this.
