Basic input method detection.