private void updateRemote() {
        if (remoteKeys[KeyEvent.VK_R]) reset();

        if (ai.getY() >= 2)
            if (remoteKeys[KeyEvent.VK_UP] || remoteKeys[KeyEvent.VK_Q]) {
                ai.move(false);
            }
        if (ai.getY() <= (height - 50))
            if (remoteKeys[KeyEvent.VK_DOWN] || remoteKeys[KeyEvent.VK_A]) {
                ai.move(true);
            }
    }