import keyboard  # using module keyboard
import httpClient

commands = {'forward' : 0,
           'back' : 0,
           'right' : 0,
           'left': 0
           }
           
def initDict(myDict):
    for x in myDict:
        myDict[x] =0
 

init_status = httpClient.initConnection()
if init_status == True:
    
    while True:  # making a loop
        initDict(commands)
        printBolean = False
        if keyboard.is_pressed('w'):  # if key 'w' is pressed 
            commands['forward'] = 100
        if keyboard.is_pressed('s'):  # if key 's' is pressed 
            commands['back'] = 100
        if keyboard.is_pressed('a'):  # if key 'a' is pressed     
            commands['left'] = 100
        if keyboard.is_pressed('d'):  # if key 'd' is pressed 
            commands['right'] = 100
        if keyboard.is_pressed('v'):  # if key 'q' is pressed
            commands['stop'] = True
        else:
            commands['stop'] = False
        if keyboard.is_pressed('q'):  # if key 'q' is pressed
            print("quiting")
            
            break
        if keyboard.is_pressed('p'):  # if key 'p' is pressed 
            printBolean = True
        if(printBolean):    
            print('*******')
            print(commands)
            print('*******')
        
        httpClient.sendCommands(commands)
    
    

        
3720289b791bf0527b22e8499a901772eb3a1ffb
<mask token>


def initDict(myDict):
    for x in myDict:
        myDict[x] = 0


<mask token>

<mask token>


def initDict(myDict):
    for x in myDict:
        myDict[x] = 0


<mask token>
if init_status == True:
    while True:
        initDict(commands)
        printBolean = False
        if keyboard.is_pressed('w'):
            commands['forward'] = 100
        if keyboard.is_pressed('s'):
            commands['back'] = 100
        if keyboard.is_pressed('a'):
            commands['left'] = 100
        if keyboard.is_pressed('d'):
            commands['right'] = 100
        if keyboard.is_pressed('v'):
            commands['stop'] = True
        else:
            commands['stop'] = False
        if keyboard.is_pressed('q'):
            print('quiting')
            break
        if keyboard.is_pressed('p'):
            printBolean = True
        if printBolean:
            print('*******')
            print(commands)
            print('*******')
        httpClient.sendCommands(commands)

<mask token>
commands = {'forward': 0, 'back': 0, 'right': 0, 'left': 0}


def initDict(myDict):
    for x in myDict:
        myDict[x] = 0


init_status = httpClient.initConnection()
if init_status == True:
    while True:
        initDict(commands)
        printBolean = False
        if keyboard.is_pressed('w'):
            commands['forward'] = 100
        if keyboard.is_pressed('s'):
            commands['back'] = 100
        if keyboard.is_pressed('a'):
            commands['left'] = 100
        if keyboard.is_pressed('d'):
            commands['right'] = 100
        if keyboard.is_pressed('v'):
            commands['stop'] = True
        else:
            commands['stop'] = False
        if keyboard.is_pressed('q'):
            print('quiting')
            break
        if keyboard.is_pressed('p'):
            printBolean = True
        if printBolean:
            print('*******')
            print(commands)
            print('*******')
        httpClient.sendCommands(commands)

import keyboard
import httpClient
commands = {'forward': 0, 'back': 0, 'right': 0, 'left': 0}


def initDict(myDict):
    for x in myDict:
        myDict[x] = 0


init_status = httpClient.initConnection()
if init_status == True:
    while True:
        initDict(commands)
        printBolean = False
        if keyboard.is_pressed('w'):
            commands['forward'] = 100
        if keyboard.is_pressed('s'):
            commands['back'] = 100
        if keyboard.is_pressed('a'):
            commands['left'] = 100
        if keyboard.is_pressed('d'):
            commands['right'] = 100
        if keyboard.is_pressed('v'):
            commands['stop'] = True
        else:
            commands['stop'] = False
        if keyboard.is_pressed('q'):
            print('quiting')
            break
        if keyboard.is_pressed('p'):
            printBolean = True
        if printBolean:
            print('*******')
            print(commands)
            print('*******')
        httpClient.sendCommands(commands)

import keyboard  # using module keyboard
import httpClient

commands = {'forward' : 0,
           'back' : 0,
           'right' : 0,
           'left': 0
           }
           
def initDict(myDict):
    for x in myDict:
        myDict[x] =0
 

init_status = httpClient.initConnection()
if init_status == True:
    
    while True:  # making a loop
        initDict(commands)
        printBolean = False
        if keyboard.is_pressed('w'):  # if key 'w' is pressed 
            commands['forward'] = 100
        if keyboard.is_pressed('s'):  # if key 's' is pressed 
            commands['back'] = 100
        if keyboard.is_pressed('a'):  # if key 'a' is pressed     
            commands['left'] = 100
        if keyboard.is_pressed('d'):  # if key 'd' is pressed 
            commands['right'] = 100
        if keyboard.is_pressed('v'):  # if key 'q' is pressed
            commands['stop'] = True
        else:
            commands['stop'] = False
        if keyboard.is_pressed('q'):  # if key 'q' is pressed
            print("quiting")
            
            break
        if keyboard.is_pressed('p'):  # if key 'p' is pressed 
            printBolean = True
        if(printBolean):    
            print('*******')
            print(commands)
            print('*******')
        
        httpClient.sendCommands(commands)
    
    

        