public int getButtonReleaseTime(String s) { int ind = Array.IndexOf(buttonString, s); return buttonStateArray5[ind]; }