Index: game-gui-glfw.cpp
===================================================================
--- game-gui-glfw.cpp	(revision 3782d66f96ee5fc0377a6866acdec391a02a4115)
+++ game-gui-glfw.cpp	(revision 1802a418ac0026c85d2a8724ad0cb462308d852d)
@@ -147,5 +147,5 @@
 void glfw_key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) {
    UIEvent e;
-   e.type = action == GLFW_RELEASE ? UI_EVENT_KEYUP ? UI_EVENT_KEYDOWN;
+   e.type = action == GLFW_RELEASE ? UI_EVENT_KEYUP : UI_EVENT_KEYDOWN;
    e.key.keycode = key;
 
