code: func (k *KeyLogger) eventFromBuffer(buffer []byte) (*InputEvent, error) {
  	event := &InputEvent{}
  	err := binary.Read(bytes.NewBuffer(buffer), binary.LittleEndian, event)
  	return event, err
  }
docs: // eventFromBuffer parser bytes into InputEvent struct