You shouldn't compare key codes to plain integers; they make your code difficult to read and maintain.
When in doubt, look it up in the Java docs. In this case, the documentation for
KeyEvent is particularly useful. Note the enormous number of static int fields; those are what you should be comparing your KeyEvent to. For example, the following will test whether the key pressed is the up arrow key:
if (event.getKeyCode() == KeyEvent.VK_UP) ...