Voltage high codes are from the sensors being unplugged and the key on. The p0508 I believe is a speed sensor code. As for the speedo inop,sometimes the needle can spin all the way around an get caught on the peg. When you did the key trick It probably reset itself.