GetCharInputValue, c# method