private boolean isValidKeyboardInput(int keycode){
        return keycode == KeyEvent.VK_SPACE
                || keycode == KeyEvent.VK_DOWN
                || keycode == KeyEvent.VK_RIGHT
                || keycode == KeyEvent.VK_LEFT
                || keycode == KeyEvent.VK_UP
                || keycode == KeyEvent.VK_SPACE;
    }