code: func repeatingKeyPressed(key ebiten.Key) bool {
  	const (
  		delay    = 30
  		interval = 3
  	)
  	d := inpututil.KeyPressDuration(key)
  	if d == 1 {
  		return true
  	}
  	if d >= delay && (d-delay)%interval == 0 {
  		return true
  	}
  	return false
  }
docs: // repeatingKeyPressed return true when key is pressed considering the repeat state.