The most convenient method of inputting romanized Sanskrit is by setting up an alternative keyboard layout. This allows one to hold a modifier key to type letters with diacritical marks. For example, alt+a = ā.