# How do I detect colons?

**URL:** <https://discourse.glfw.org/t/how-do-i-detect-colons/1990>\
**Category:** support\
**Created:** [February 3, 2022, 10:45pm UTC](https://discourse.glfw.org/t/how-do-i-detect-colons/1990 "2022-02-03T22:45:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigjango13](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/bigjango13/32/598_2.png) [@bigjango13](https://discourse.glfw.org/u/bigjango13)\
**Post date:** [February 3, 2022, 10:45pm UTC](https://discourse.glfw.org/t/how-do-i-detect-colons/1990/1 "2022-02-03T22:45:01Z")

</div>

Hello, I was looking at [this key reference](https://www.glfw.org/docs/latest/group__keys.html) and it doesn’t seem to have a colon, so how would I detect a colon press?

---

<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 4, 2022, 12:46pm UTC](https://discourse.glfw.org/t/how-do-i-detect-colons/1990/2 "2022-02-04T12:46:30Z")

</div>

Welcome to the GLFW forum!

The [Key Input](https://www.glfw.org/docs/latest/input_guide.html#input_key) functions are designed for physical key input, and are mapped to a US Keyboard layout. There is no colon in the physical keyboard identifiers because this is the same key as the `GLFW_KEY_SEMICOLON ` key.

If you need users to press the actual `;` key, then you should consider using the [Text input](https://www.glfw.org/docs/latest/input_guide.html#input_char) functions.

For further discussion you may be interested in reading [this Github issue about translated keycodes](https://github.com/glfw/glfw/issues/1502).

---

<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:** [November 16, 2026, 4:13pm UTC](https://discourse.glfw.org/t/how-do-i-detect-colons/1990/3 "2026-11-16T16:13:12Z")

</div>

Closed on November 16, 2026, 4:13pm UTC


