(key)
return win32api.GetKeyState(key) < 0
Check if a key is being pressed.
    This also supports mouse clicks using win32con.VK_[L/M/R]BUTTON.

    Returns:
        True/False if the selected key has been pressed or not.
Check if a key is being pressed.
    This also supports mouse clicks using win32con.VK_[L/M/R]BUTTON.
Check if a key is being pressed . This also supports mouse clicks using win32con . VK_ [ L / M / R ] BUTTON .
def check_key_press(key):
    """Check if a key is being pressed.
    This also supports mouse clicks using win32con.VK_[L/M/R]BUTTON.

    Returns:
        True/False if the selected key has been pressed or not.
    """
    return win32api.GetKeyState(key) < 0
def check_key_press ( key ) : return win32api . GetKeyState ( key ) < 0