Utility for converting from string to InputControlType, closes #55