--- a/src/key_events.c
+++ b/src/key_events.c
@@ -64,7 +64,7 @@
 
 typedef struct {
   const gchar *desc, *cmd;
-  gint         keyval;
+  guint        keyval;
   guint        state;
   const gchar *keyname;
 } key_binding_t;