Prevent crash when getKeyCode() returns a negative value.
Prevent crash when getKeyCode() returns a negative value.

Submitted by:	Peter Graves <peter@armedbear.org>

kaffe/kaffe,kaffe/kaffe,kaffe/kaffe,kaffe/kaffe,kaffe/kaffe