Reimplement menu clear input courtesy of meancoot