diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h
index 38624686ee9a145ffaacbcfa063e5d985da750f0..609a115e35cf153187c0fdd3ab5f46b46dc7c40c 100644
--- a/tools/perf/util/hist.h
+++ b/tools/perf/util/hist.h
@@ -208,8 +208,8 @@ static inline int script_browse(const char *script_opt __maybe_unused)
 	return 0;
 }
 
-#define K_LEFT -1
-#define K_RIGHT -2
+#define K_LEFT  -1000
+#define K_RIGHT -2000
 #endif
 
 #ifdef GTK2_SUPPORT