use bytes.HasPrefix and unsafe to speed up readKey

The bytes package already has a prefix function.