To type an accented character for Spanish, German, or French, just press and hold the most similar letter. 


For example, to type ñ, press and hold n: