def wait_for(button):
    """
    If You Want to Wait For the User to Press a Key (Keyboard or Mouse) Use This Function.
    """
    if button.lower() in ('middle', 'left', 'right', 'back', 'forward'):
        if button.lower()[:1] == 'b':
            button = 'x'
        if button.lower()[:1] == 'f':
            button = 'x2'
        import mouse
        mouse.wait(button)
    else:
        import keyboard
        try:
            keyboard.wait(button)
        except:
            raise ValueError('Incorrect Button Name.')
