Typing accented letters from physical keyboard
I don't believe there is a way to do this with stock keyboard.  Try a 3rd-party keyboard app that supports language packs and transliteration for hardware keyboards.

I've personally used AnySoftKeyboard with a plugin for my native language, which worked great on my old G1's slide-out keyboard. Try to see if a layout pack for your language is available.