[PATCH 4/5] make the keyscan code human readable