keypress event and setComponentOrientation doesn't work properly inAWT(b/c of some bugs), try to use swing, it works good and theproblem with swing is, you client needs plugin which is 9MB