def keypress_endpoint(event) -> str:
    """
    Helper method to return the endpoint for the corresponding keypress event
    :param event: Name of the event (ex: powerOn/powerOff)
    :return: A string of the URL to hit
    """
    return f'/keypress/{event}'