Now using arbitrary-length output with Java's own keycode values.