private boolean isArrowKeyCode(int keyCode) {
        return keyCode == KeyEvent.VK_LEFT
                || keyCode == KeyEvent.VK_UP
                || keyCode == KeyEvent.VK_RIGHT
                || keyCode == KeyEvent.VK_DOWN;
    }