(RMenu) Pass input states by value instead of by reference