Reading enter from keyboard

Hi everyone, I'm having a difficult time reading the enter key from the keyboard, I need to verify whether a key pushed is enter or some other key. I've tried using \n, \r and even null all of these are throwing index out of bounds exceptions. I'd really appreicate any suggestions you have.

Thanks!

[315 byte] By [dawn9100] at [2007-11-26 6:30:43]
# 1
Nevermind =) I finally figured it out...
dawn9100 at 2007-7-6 14:27:52 > top of Java-index,Desktop,Sun Java Desktop System...