Decoding keyboard captures