Updated keyarray functions, supports all 256 ascii codes. can return any key state.