Aside from the application Barrd pointed out, there also is an RPG game for linux/windows which helps you in learning Japanese.
It tackled the problem of westerners not having japanese keyboards by letting
the player enter the Katakana/Hiragana or Kanji characters / words in phonetic Romaji style.
Project LRNJ
Hth,
Deliria.