Y

        if not nearWall(newX, oldY):
            playerPos[0] = newX
            change = True
        if not nearWall(oldX, newY):
            playerPos[1] = newY
            change = True

    if playerVelY:
        wobbleGun()
    if change:
        drawCanvas()

def changeKey(which, to):
    if which == 65 or which == 37: # left
        key[0] = to
    elif which == 87 or which == 38: # up
        key[2] = to
    elif which == 68 or which == 39: # right
        key[1]=to
    elif which == 83 or which