Tests for the presence of any key and returns that keypress.
final public int getChar()
Returns the key code of the currently pressed key (or 0 if no key is pressed).