Index: /trunk/src/org/openstreetmap/josm/gui/preferences/shortcut/PrefJPanel.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/gui/preferences/shortcut/PrefJPanel.java	(revision 12496)
+++ /trunk/src/org/openstreetmap/josm/gui/preferences/shortcut/PrefJPanel.java	(revision 12497)
@@ -101,5 +101,6 @@
         // Assume all known keys are declared in KeyEvent as "public static int VK_*"
         for (Field field : KeyEvent.class.getFields()) {
-            if (field.getName().startsWith("VK_")) {
+            // Ignore VK_KP_DOWN, UP, etc. because they have the same name as VK_DOWN, UP, etc. See #8340
+            if (field.getName().startsWith("VK_") && !field.getName().startsWith("VK_KP_")) {
                 try {
                     int i = field.getInt(null);
