Fix a potential IllegalArgumentException caught by monkeys. #2176776
Fix a potential IllegalArgumentException caught by monkeys. #2176776

For some reason the key code is outside the code point range. Adding
a safeguard to deal with possible out of range key codes.

klausw/hackerskeyboard,klausw/hackerskeyboard,klausw/hackerskeyboard,klausw/hackerskeyboard